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,10204,916,10186,4216,4979,6561,6561,6561,7371,4769,7501,10296,11019,10292,6718,10992,207,10310,6406,11269,10940,11247,11118,10466,9716,10408,10490,9706,9718,11254,6603,9708,11051,11427,9690,10695,860,11263,11295,6361,11053,11467,10438,9384,10730,9936,6443,6271,11731,10721,9042,8962,11727,8685,11792,7219,365,374,7806,6586,3823,6003,9791,9116,3327,9983,10002,10368,10394,9831,7528,8544,6843,3702,11053,6484,10698,1250,10478,10670,11380,2658,10687,10940,8139,9866,11412,8302,4435,5576,4226,10711,9222) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC