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,7473,6721,9118,9118,9118,9118,207,207,207,207,207,3376,9615,9808,9750,9809,9807,9811,10300,6,6723,6722,6724,659,659,6720,4156,11235,10530,9050,2590,9348,6861,9461,5,11492,10734,10046,107,10879,9500,9501,9782) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC