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,525,526,7109,7076,7574,801,4185,2179,5790,6181,788,2085,4683,6633,2288,6240,3197,3169,2302,6175,1885,6896,6832,3250,7154,7086,1271,7081,6890,6361,7297,7285,949,2113,3172,7572,5564,359,7589,4639,1185,7254,2775,7971,324,4684,6769,2266,1381,3732,7944,916,7291,6175,7906,7716,8205,6381,1662,1089,8765,6134,6134,8716,8434,7852,4752,7810,3891,9392,9159,2263,7974,3809,2266,2266,1089,1089,1089,4080,3809,5446,2546,2179,4009,9007,7909,10718,10718) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC