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,1327,7143,7143,1738,3582,6642,7837,7837,6103,6103,5799,4860,5995,5995,8109,3647,3647,2029,2029,7995,4395,4395,7037,7239,867,867,867,1645,2006,1215,2041,2041,6971,6971,8230,8143,2729,2729,2729,3913,2992,9306,10436,10365,8559,272,6715,9857,6197,9633,9632,10232,5435,10698,9857,9667,10731,4435,313,4769,8710,10831,9946,5435,8831,10086,6875,10056,8142,1990,1990,4659,4659,4659,6740,1645,10478,9785,9649,10836,9975,6740,10809,10482,867,10477,2998,3402,10316,4923,10318,8970,7849,2039,9737,7966,9972,9524,8024,4788,7592,1765,8168,6760,6988,10310,1787,6393,11023,365,8685,11079,11080,10649,10669,10731,10228,11216,4337,9296,4432,8389,7218,6740,7828,8145,9382,3169,3532,9392,1230,9543,9389,9066,3574,3581,7882,8661,10056,7877,10031,1044,10258,9953,6141,4156,7632,10273,9090,9507,10032,10113,9972,10484,10514,10476,10471,10776,10474,10414,10836,10905,8991,9136,8926,10751,8185,10935,11082,8175,2867,10111,10884,11325,2171,8962,9011,8289,4906,8102,10170,11361,11690,10622,11742,11101,11402,6134,10667,7493,10696,10032,7708,9386,11101,4923,11519,6854,653,10386,1990,3327,10940,10731,10731,5810,6966,4769,11311,10486) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC