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,7677,7169,11349,8943,8944,11235,10895,7881,7752,10568,8627,11237,9922,8945,11361,8585,10975,11314,10354,9249,10747,11457,11423,11272,11458,11396,11488,11287,11456,11495,11493,11492,11372,11377,6442,11476,11599,11521,3549,11123,11435,11443,11489,11412,11595,11414,11498,11661,11604,11027,8088,11552,11288,11678,10532,11690,11655,11722,11724,11646,11598,11456,11465,11420,11457,11498,11481,11488,11293,6561) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC