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,6249,1954,9300,3860,6255,4234,8142,5995,4362,3860,4406,9321,4406,9321,2635,7953,2706,6259,1894,8222,7641,4325,3029,6618,3744,5484,1609,322,8434,8628,6256,7635,5693,4349,5854,2033,6252,4109,5799,1954,6248,1954,6248,1537,2869,7897,3860,7953,9486,9486,5994,3830,6010,6880,4087,9156,8925,9192,9143,365,368,386,391,6076,382,5994,9191,8899,5389,9951,9048,3890,1894,3890,1894,1895,7194,545,540,542,542,5445,549,5445,549,2923,9177,548,2703,5810,5368,766,734,6256,5401,2049,4598,5063,3358,5065,5052,5053,6252,6255,1815,5854,5870,1278,1816,6068,1894,6248,2019,1895,2247,6251,2245,2330,2509,2678,2680,2681,2703,90,419,1506,5726,5856,5368,5445,5428,6250,5565,4451,5799,5070,3989,3743,3516,2923,2033,8798,3830,7618,6095,7617,6249,4204,3829,5157,3516,6254,6256,2918,2923,3743,4340,1650,5865,5693,5468,5242,5573,501,2594,926,6245,9052,2033,1650,6243,501,5179,8893) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC