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,11352,10670,8555,8555,9889,10940,10039,10649,11410,11395,10670,11399,9863,10670,11399,9863,8139,10296,10203,1250,10478,10670,11380,2658,10687,10940,8139,9866,8302,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,11549,11521,3549,11123,11435,11443,11489,11595,11414,11498,11661,11604,11027,8088,11552,11288,11678,10532,11690,11655,11722,11724,11646,11598,11010,11195,10531,11101,10702,11300,11117,11365) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC