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,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,7871,6117,1167,2261,9386,9936,10203,916,10186,4216,4979,10133,10144,10081,9318,7884,9559,6795,4906,1497,9336,10355,9031,9649,8489,10380,10713,5810,10145,10672,10667,10658,892,10056,10836,10893,10870,10550,10775,10861,10738,11021,11051,2263,8207,6904,6904,8395,1300,6691,6136,6136,1385,6718,2849,2849,1645,8144,7239,7239,1807,4704,5534,6136,9258,9272,2677,1210,4785,7835,8828,8828,3574,10170,10291,5534,10078,7280,7984,10892,10673,10212,5269,10819,9865,11044) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC