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,7279,1665,7661,7114,7241,7111,4362,7147,5887,7068,7095,7110,7258,5996,7123,7100,7082,7116,7112,7088,7276,7072,1828,1726,7092,2342,8048,7675,7152,7675,7086,7117,8033,7096,7071,8082,7104,547,524,529,7295,7562,7528,7562,7391,1461,4061,6631,7493,7437,778,1732,7467,4996,4999,5872,6619,1571,6275,4991,4991,6586,6715,6715,6715,3555,3555,3555,3555,3555,6295,6295,6295,3105,6402,6402,6402,6548,6400,6400,6400,6400,6400,2005,840,7546,1145,1250,7020,6810,947,4558,964,6778,783,1089,6561,7496,6235,7409,7451,6810,4558,964,8436,6561,7516,7496,3066,8111,7127,6810,7421,7420,7416,7388,7387,7528,7412,7541,7445,7247,7241,7241,7069,7467,7467,7506,7506,7437,7420,9019,9019,9019,9024,7501,7457,7457,7457,7457,7457,7457,8861,7491) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC