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,310,6721,2491,378,1461,387,7175,5286,8222,7872,856,7297,5371,8182,8144,8377,7987,7149,3989,524,7878,1257,5602,8610,8547,8480,8629,8792,7913,8031,8890,8821,8876,8819,7473,6721,9118,9118,9118,9118,9462,9462,207,207,207,207,207,3376,9615,9808,9750,9809,9807,9811,10300,6,6723,6722,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