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,275,6743,6390,4659,6133,6821,1167,6633,6209,6240,5566,3425,3896,5883,860,6382,6749,1970,6907,6904,5822,3882,3883,3891,7293,7270,3884,7124,3888,3888,3892,7124,7251,7292,3890,7094,1366,6493,7155,3891,7095,3893,7083,3889,7087,7072,7100,7122,7082,3884,6600,7971,7985,7107,8071,3890,3897,7647,7089,3892,4724,6821,7277,7251,8197,7986,7247,8393,1626,7088,8384,8449,8384,7663,8439,8577,8085,8386,8206,8205,8401,7940,3895,8646,8412,8772,8080,8240,8368,8274,7649,7653,8737,4805,6209,9056,7713,3881,3883,4220,8269,5454,8468,7671,9053,6863,8461,4233,8271,4209,9132,9402,458,5484,3894,4519,8893,4800,7985,9481,5777,4690,450,1569,9322,8257,9418,3244,9915,9934,8268,8644,7108,9417,9793,9367,8229,10078,5484,8398,3850,6158,4121,666,4338,6335,2594,1070,6350,4185,1520,5995,233,6010,5252,1380,4218,5915,461,2261,4597,714,6001,6130,6589,6155,220,1038,5903,2122,5566,7039,2795,6413,6809,6863,7928,7834,3891,7903,7143,8766,8207,6904,6904,8395,1300,6691,6136,6136,1385,6718,2849,2849,1645,8144,7239,7239,1807,4704,5534,6136,9258,9272,2677,1210,4785,7835,8828,8828,3574,10170,10291,10204,5534,10078,7280,7984,56,2343,7039,6850,3574,1825,6139,2009,5959,8284,8926,9042,7828,6794,7148,8299,5790,5810,5952,5962,2343,6870,7640,7928,8306,6006,8761,7239,3908,8304,5763,9017,6785,6630,4566,324,2594,4983,4076,8304,9227,8840,9243,4798,4898,7878,7238,223,8436,8220,8171,7094,7713,7647,7647,5454,5454,6740,8063,7160,7548,3511,7716,8577,5134,8610,7655,9300,9354,7879,6209,8111,2009,7976,7977,6845,2024,6870,1380,5822,3874,3874,9479,9752,4146,8835,8030,8030,7149,7149,9482,9482,9603,9603,7828,9300,8436,6131,9543,8610,5209,6381,1662,1089,8765,6134,6134,8716,8434,7852,4752,7810,3891,9392,9159,7974,3809,2266,2266,1089,1089,1089,8869,8973,6209,9627,8361) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC