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,867,223,6102,6103,6609,5303,3531,409,450,6138,6548,2032,3337,2399,244,1740,6693,417,6774,1520,1198,7302,3531,417,7989,7990,4395,4079,7880,7759,6779,5640,7008,2503,7760,6986,4761,5235,1268,1345,3419,4985,8215,7607,8219,801) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC