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,10649,10731,10819,8781,10697,6366,9386,8095,754,10698,10987,6658,10940,10579,10296,10305,9488,2253,7962,10649,10696,4639,8659,8628,7910,10971,4349,4424,924,5647,3327,2554,10537,924,840,961,10961,9715,11101,2989,4216,8845,8617,8142,11101,10339,840) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC