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,1085,7446,7560,4918,6195,7849,8130,7387,4401,7388,7388,7388,4769,539,547,9264,7273,7107,8709,7122,7122,7124,7574,7084,7093,8580,7297,7486,6482,8460,7268,9264,7674,9264,7420,6367,6367,7083,6691,6691,8,5947,5947,7654,9999,9999,7273,7273,7273,7084,6583,6583,8700,7497,7503,6264,7729,1499,1591,1591,1765,7388,7390,7390,1770,7288,7388,7388,7563,6778,8175,9880,8867,9554,6579,9991,7385,11687,11674,7114) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC