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,6926,7374,6234,6988,7089,5121,6766,6766,2027,5936,1664,3702,4769,7897,7897,7897,7897,2117,6870,7897,6880,3531,7890,6843,8222,6774,6843,1366,1565,1782,7391,714,714,714,6579,6579,6579,6579,4979,4979,6602,6602,6602,6602,6602,6561,9830,2467,1462,4769,7917,6967,840,840,840,840,840,840,5947,5947,8916,8836,8922,8922,6785,5898,9263,9204,8689,9058,1558,8230,7081,8439,7646,9684,9684,9718,9718,7819,7819,9712,9713,9711,9709,9699,9695,9695,9695,9695,9695,9900,6971,9879,9879,8781,9949,8877,8878,9755,8200,8880,8880,9537,9885,7304,9853,9890,1770,1770,10526,10526,8880,6845,6845,3029,6845,7297,6845,7297,7897,8498,7897,8498,10615,10614,10615,10614,8882,8371,8882,8371,10898,10579,9797,10858,10346,11215,10346,11215,9577,3105,6550,8439,10346,10272,8087,8055,8793,8816,8816,1371,1371,1371,1371,10290,3913,10478,6264,2079,2749,2374,2071,6743,6656,10072,365,8651,9555,9437,9859,9767,368,8542,10333,11658,8816,11242,9959,6971,2555,36,6738,6710,10000,6691,3131,10839,11105,9096) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC