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,8219,8830,8219,8830,8926,9822,9910,9811,9677,9654,9769,9614,8979,9335,9953,8978,431,2093,1881,9950,9481,9951,5883,186,3625,9680,10046,10173,10116,3493,4947,7992,1520,10142,9392,10142,9392,5541,8022,5541,8022,5541,8022,9279,9290) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC