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,1371,501,396,6010,4234,2706,455,3029,3850,6381,1766,1506,6617,926,2783,4146,6204,222,1038,600,3841,4411,504,1770,388,1771,323,1767,1730,6742,1768,4156,6664,4452,3036,512,1557,4185,6390,1351,4146,1770,6740,3874,4614,4146,2023,6034,6036,6596,4473,6381,6038,4791,7238,7505,435,5143,1765,6740,7238,3511,3874,508,1771,1767,7834,6740,7238,6482,7473,7837,7836,2786,3874,6023,7837,7138,6639,7354,6730,6684,4146,5535,1215,3511,7837,7834,6117,6812,3754,6154,1699,1699,1699,1699,1699,1699,1699,1699,7118,7295,7100,7294,7082,7075,7076,7665,7647,7666,7109,7266,7124,7647,7122,7094,7092,7155,8063,7246,7281,6832,446,7151,51,8084,7083,8402,8212,7928,8042,7250,8404,8569,4178,8706,8408,7251,8576,8403,8208,8361,8083,8576,7671,8407,8365,8818,7270,8425,7153,8228,8942,7277,8939,8939,8832,8832,8782,1257,9189,8412,9138,7646,7904,7674,3169,8063,7252,7992,5719,3754,7265,8213,4079,2052,4152,8208,8193,8290,8206,8434,7903,4395,7272,7278,8229,7976,8206,8393,7097,1142,3702,2521,8220,7272,8918,7879,5995,7548,7878,1461,3754,233,4109,1520,231,1738,1228,1532,186,8222,358,4185,8390,223,2727,4639,8358,6842,6155,2889,8306,6589,8103,6588,8109,6639,8514,6366,567,6726,4131,3754,2706,2029,7992,4796,8222,2989,7995,8816,8910,5362,8230,5996,3604,2253,6971) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC