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,6953,7840,8459,8459,4346,4346,8514,8910,9320,9320,9320,9320,9320,6000,385,3840,375,380,8880,8787,8881,8771,8771,8939,8882,8832,8832,381,374,8878,6270,6066,393,9076,390,389,381,8877,8878,379,372,372,7976,8128,4716,8128,4716,8303,1777,8303,1777,8303,8303,8303,6394,9350,8024,7916,6127,8497,10211,10304,7011,6988,6911,3863,7060,7060,9520,9517,1779,9515,2079,4520,8175,2021,4659,4659,8260,6600,10305,10310,1417) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC