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,358,6177,1402,1740,2006,217,2520,2573,6971,1248,6726,1398,1453,6155,501,7097,4860,7119,4218,6176,6658,7123,6135,6190,4769,2029,6104,6642,3725,2389,7158,1970,7879,7878,5320,6562,7783,6812,7594,3550,7992,3698,8488,3725) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC