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,6562,3216,7812,5371,7995,358,2029,8020,2328,6871,8093,6589,5915,6695,8390,8281,6122,6971,6350,6766,7795,7158,7869,5956,2573,6812,7903,8230,8296,7240,6971,8781,9010,8305,1453,3549,8019,9047,9063,8526,7910,4454,6809,9321) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC