this
MySQL returned error
Error Description :
Error No : 1064
Description : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,act' at line 1
SQL Query
SELECT COUNT(`book`.id) AS CNT FROM `book` WHERE id!=0 AND book.id<>0 and book.active='yes' and city_id!='' and book.id in(0,4316,5298,5003,958,3059,5175,7021,7016,5379,6809,7374,1645,6774,5279,7307,2342,4574,6006,7837,7834,7835,6845,2261,6104,7836,2644,1307,6880,5236,5373,6713,6368,7020,2944,2387,7238,6821,4624,7951,4901,6658,5131,4406,8222,7307,7374,7374,6004,6361,6361,2458,2458,4399,4399,7849,7849,317,5303,9042,9975,9975,10033,10036,6700,8613,4435,8255,6801,8544,6316,6631,6715,5568,8217,3598,915,8292,7912,5681,6733,7711,6774,6774,6843,1366,1565,1782,7898,7391,714,714,714,6579,6579,6579,6579,6602,6602,6602,6602,6602,6561,9830,9407,6218,6197,6768,5996,3888,8729,391,7548,3890,3885,1492,7160,6749,3889,7987,7986,1462,377,6076,8968,1462,8968,3890,372,6593,387,7576,6593,7576,6593,7576,7985,8271,314,8389,6174,6175,9030,1726,6493,8272,3891,3883,1726,3897,378,8878,8877,7576,392,7599,7576,4473,389,3894,3884,3881,2992,368,2145,376,6076,6361,915,6361,6066,1108,1167,546,8267,8788,8223,390,8223,3892,9537,9547,8789,5956,5956,9536,9536,6843,9266,6843,9266,8858,365,6204,6593,365,6593,6750,8878,9616,6743,6751,8390,8981,8983,6750,9879,6746,8879,6746,8879,8980,7196,8167,9950,9692,8230,9692,8230,9525,7588,6745,6386,6745,6386,6743,9890,10167,6916,7610,6745,10263,9829,8497,9012,9667,5142,6845,8793,5995,1982,4535,6713,3625,7873,7131,867,186,6103,2749,8290,2171,7576,6807,8839,2594,8900,7920,5719,8089,1215,840,9616,2555,990,7576,4769,2998,9603,8543,2328,8995,6117,1167,2261,9386,9936,10203,10204,916,10186,4216,10375,10879,10892,10246,10707,6740,6977,11214,5435,10987,587,10682,11039,8563,10670,9863,3957,1044,11365,11257,8139,2056,2069,3327,9791,10687,10817,3702,11399,11215,11400,11298,8191,1296,10731,6367,9946,7048,11410,4769,7374,11497,1358,1359,11880,1983,9830,6952,6433,4985,51,9386,3863,10831,10211,11263,916,11247,11115,11116,8854,7806,11218,10976,9006,11214,10438,11713,11262,10945,11472,9820,8740,10506,9873,9874,11803,11804,7122,10511,10629,11794,7931,7659,9875,7971,8240,10768,8712,10863,9956,7254,7088,11335,9876,11763,7674,4898) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC