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,964,5996,7105,7384,2389,3449,3449,8015,8015,8015,8015,8185,4492,7472,7272,7089,7119,7261,7281,7072,7112,7112,7392,7539,7092,7506,7286,7286,7286,7286,7496,7454,7390,7516,7538,7659,7445,7445,8477,9660,9813,9313,10075,10074,10011,10011,10056,10056,41,9650,8182,8390,10526,8401,8859,10702,10480,10496,10614,10859,10615,10789,11668,7422) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC