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,6794,6189,1738,5877,6971,7240,3277,1057,2530,3131,3754,6563,6350,6596,2477,2571,4834,4769,6578,6727,1707,4422,9112,8873,4437,863,9111,8872,9113,4860,8649,8872,9049,4920,1766,2727,6656,3402,4834,5551,2685,986,231,1730,6146,4614,6311,1398,5756,3189,6214,6497,6489,5093,6223,6496,1234,946,6212,5947,3302,2776,6261,3479,6214,1741,2677,6221,6501,6212,8000,6496,1245,2696,8023,7638,8233,7304,3904,8485,8220,1645,8628,8306,8783,8933,8361,3287,9030,9153,9152,7117,446,7117,4079,4796,7548,9600,8933,7155,7107,9750,7917,446,9849,9206,7985,9264,10039,8648,7080,10265,10556,8910,11291,8062,1988,11236,11812,1173,11497,10591,11497,8995,9838,11690,11736,9647,11656,11770,11714,11905,11782,3549,6531,6530,6529,6528,1768,6521,6872,2782,2784,7096,1704,3442,5691,1380,5909,6538,6533,6512,6511,2783,6510,6509,6508,6514,6515,6513,6507,6149,3898,7300,6221,6220,6521,6158,6523,5334,7700,6420,6376,7703,6780,1746,2989,6419,6371,6521,6527,6372,6523,6223,6519,6531,5864,6518,6218,6216,6215,6496,6656,8167,6497,6386,6197,4931,8333,8241,8337,8883,8327,8245,8591,6607,6604,8700,3442) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC