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,4395,6740,4395,6740,4566,7238,9706,8220,9698,180,4860,2932,9708,7758,8031,36,8901,9365,9402,5236,8089,9464,9617,9038,9541,9615,9925,9668,9345,9366,9648,9052,6742,3884,9694,6382,11218,6800,10565,7546,9905,9879,9925,8793,10020,3059,7976,223,7976,223,10179,1765,9773,1766,9773,1766,9258,10182,9258,10182,9258,10182,9366,10039,1524,9705,9712,10457,924,5647,3327,2554,10537,924,840,961,10961,11101,2989,4216,10825,8845,8617,8142,5314,7828,3957,10107,9716,9685,9681,11227,10455,11726,11727,11730,11731,10106,9717,9710,11809,11742,11808,11811,11810,11729,11728,9713,9714,9688,9689,11855,9694,9701,9692,9709,11732,9708,4,10107,9682,9686,9687) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC