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,2780,6505,6539,6533,6532,1379,6261,681,6539,6534,8682,6505,6532,8088,446,4178,2488,7734,694,7569,5389,8731,8591,2785,2795,2783,2786,1266,8247,8874,8245,8943,8944,8241,8248,4486,6023,4464,6036,4470,6034,6444,6031,6030,2992,6038,1537,6039,9030,2224,2221,2218,2211,6041,6040,2208,6540) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC