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,5903,2122,2263,5566,2795,6413,6809,6863,56,2343,2263,6850,3574,1825,6139,2009,5959,8284,8926,9042,7828,6794,7148,2263,8299,5790,5810,5952,5962,2343,6870,7640,10724,11446,8716,11095,11382) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC