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,6562,6570,6735,6669,6883,6902,6571,6901,6568,6990,6993,5252,6633,1537,375,431,1765,4558,3702,6104,5148,714,6785,6364,6962,176,2706,3337,5331,3989,1029,2029,7019,5516,7034,6365,308,1559,2006,358,7235,7304,6001,6718,2024,5915,2024,5088,4320,5322,2946,5995,1370,3414,6622,6266,5380,7125,1056,4405,2113,6594,6364,1277,1085,4216,2168,2706,2956,8094,7685,8095,7691,6562,8147,6678,7224,7230,7690,6565,8289,6882,6571,6570,6575,6574,8488,6736,6990,2469,4086,4086,4086,4086,4086,4086,4086,4086,4086,4086,9947,7699,9002,8993,8997,8997,8997,9003,9003,9003,4079,6870,6740,7238,9033,8220,3760,231,6942,1869,2446,3454,3787,1738,501,1461,1228,836,3657,6570,802,1055,1160,1568,943,772,743,1441,1277,1727,1915,7864,7858,6852,2592,6827,1110,6845,7856,7758,3590,7221,3844,5623,5765,2654,3303,7034,1577,1822,2685,463,7232,3181,6853,219,5509,8488,1416,2864,3844,3418,360,8094,944,1522,2653,243,341,2469,1575,2334,3482,2956,7803,3788,1313,2571,4219,3989,2723,5148,2671,3843,3304,319,470,3417,1829,3584,7779,4722,5552,4021,986,3351,3778,6643,5735,7784,6849,5170,6570,8616,5070,2454,2706,1893,6573,2456,6562,652,8707,6574,6571,6998,8684,7224,650,7031,7229,7232,7221,6675,7227,3540,6676,5088,6564,444,7063,6563,6568,6575,6565,6576,6883,6574,6735,7228,6678,6882,7013,7690,3415,1856,6996,7757,7687,6999,6997,7688,8726,6992,7689,8147,6990,7223,7231,6994,7681,8148,7001,7059,7235,7225,6736,7057,7692,8993,6885,7684,7685,6669,7052,7234,6902,7682,7683,7226,7699,7233,7691,8919,7237,9003,6007,1834,8994,2151,6676,9002,9068,6860,8997,8996,8814,7861,5148,5148,7234,7234,7063,7684,6675,7692,6570,9463,9463,9463,7013,7013,7182,6571,6571,6571,6571,6571,8587,8587,8587,8993,8993,8993,8993,9374,9374,9374,9832) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC