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,7646,7904,7674,3169,8063,7252,7992,5719,3754,7265,8213,4079,2052,8208,8193,8290,8206,8434,7903,6178,4395,7272,7278,8229,7976,8206,8393,7097,1142,3702,2521,8220,7272,8918,2628,1755,2913,9014,9647,8913,6661) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC