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,6264,5763,1764,7266,7094,7105,4834,7666,7654,5995,8846,389,7910,6175,1215,7665,8939,7155,7593,2995,9116,8358,4639,9202,9300,8085,4983,9386,2897,8231,2085,8830,9326,9382,5903,8027,7121,8048,9389,7931,9574,6769,8077,9134,8782,7115,9095,10024,9828,9539,8908,8169,9665,10079,9529,9674,8052,9679,9754,9665,10003,7363,10080,9573,1173,9679,10075,8169,104,10084,4535,9888,8126,8125,9665,5059,8946,9189,10084,9554,8151,8151,9771,8733,5680,8230,7956,5208,2989,2989) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC