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,10211,9284,6984,314,7917,9306,8839,8767,9995,7649,8209,8768,10301,6586,10730,226,3402,10687,11739,2872,6102,11497,8302,1811,11346,6718,8686,9547,8434,10169,9865,8922,11400,9972,10707,6978,10290,1983) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC