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,6691,5484,2447,5965,5314,6210,964,1051,1050,1049,3863,2830,587,856,2893,4598,2520,1052,4599,4602,4600,3864,4603,3440,5208,1981,4154,4068,5098,4181,2467,2989,5351,4898,4076,5351,1056,6907,2393,5951,5959,5927,1010,961,924,6740,7238,5927,6190,511,7213,6979,801,958,6725,6270,372,6004,7872,6349,7828,464,2897,7912,1151,408,3647,7861,5965,7994,223,6593,7599,7605,4395,6364,4320,7982,4535,8626,5959,8947,7874,8969,2253,9014,5763,8281,8991,7128,7148,8836,6891,7146,7773,8108,56,2343,7039,2263,6850,3574,1825,6139,2009,5959,8284,8926,9042,7828,6794,7148,2263,8299,5790,5810,5962,2343,6870,7640) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC