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,6772,6593,1746,5912,7640,7505,7437,7437,7561,7561,1992,1981,1981,3881,7985,6493,3893,8272,3884,8274,3890,3883,535,3894,3897,3892,9493,1767,1769,1768,7299,2520,1766,9892,8232,9534,6512,6511,6509,6510,6508,3885,3070,7753,7753,7753,7752,9502,9502,4788,5821,1764,7503,6264,7729,1499,9022,1591,1591,7472,7458,7457,7451,7443) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC