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,10523,10548,180,10683,10685,10688,10672,10699,10265,10739,10740,9761,3244,10737,8763,9386,10394,4405,9936,993,7135,10505,2117,8947,9463,10339,10649,7003,9536,10683,10518,10002,9900,10368,4769,5770,4801,7160,2521,2522,5647,10526,11266,8223,9116,5839,10368,10974,9983,10904,11443,11442,9669,9670,3849,3564,10719,11101,10316,10736,2164,3282,11657,11673,10093,11451,11659,11658,11660,10375,11714,11314,11681,11703,11494,9471,41,9897,582,11620,10886,11346,9868,9942,7027,11486,10840,8108,162,4598,9527,10042,10003,1349,8955,10063,1134,10149,10057,10062,10048,9937,10144,8514,7138,10227,61,9406,4432,9930,8105,9961,5553,10183,9066,10273,7839,3080,10127,10342,4277,10378,7829,10476,9346,10121,4460,9249,10512,10569,9757,10568,10674,10243,10538,10685,10129,608,1253,10514,10783,10745,10359,10065,10743,10244,9935,9372,10893,10880,10303,10878,10895,145,10113,10683,8999,10740,1347,5903,11027,10341,10719,10739,10744,10748,9725,9454,8935,10871,11126,11123,10114,10719,11100,10476,9983,10893,10895,8557,11172,10747,6699,6635,4460,7017,11272,4061,10355,11220,11340,8010,10977,11237,11353,10856,11285,11287,11349,10543,11361,10528,228,9278,10870,3115,11202,10879,10893,11171,11107,10842,11489,11201,8910,9928,11084,11381,11604,11287,9832,9298,11599,11377,7005,9439,11647,7038,11083,3936,3847,11517,11554,8514,10739,10749,7876,8853,11646,11396,11681,8031,11724,10814,9922,11678,10782,9833,11243,9831,10288,10289,10266,5193,8835,11396,11785,7602,3501,8550,361,10233,8548,252,10039,11670,6874,11021,11377,9677,11875,9600,10359,11784,11423,11717,8105,1347,5688,11822,5545,10518,9799,10363,8763,10654,10655,10665,10144,10705,10658,9277,7239,10673,10667,7640,10830,10832,9825,8485,10876,2052,10702,7874,11010,9125,10910,10714,9448,9465,7303,9449,1381,10672,10820,7809,578,10514,10724,9758,7812,9009,11201,11198,11200,4898,11236,8135,6769,1029,11199,10905,10362,11339,10741,9244,11378,11359,9558,7994,8734,9046,10737,9308,10184,10541,11480,10021,10234,4395,11373,11487,9759,4800,8388,2453,11554,11473,11604,11456,9963,10177,130,11623,7597,8151,11588,11661,11719,10900,4510,10979,10892,5763,11218,11662,8169,10565,8667,11394,8778,10124,8027,11134,11870,11290,11496,11851,11829,11825,10892,2847,10940,4349,947,9910,10128,9941,10148,972,10063,10116,10283,10227,231,10284,10039,10188,6700,8139,10303,10319,10268,10473,4023,9406,10306,10526,10548,2841,10547,10569,5175,9031,10362,10268,10368,9900,10002,10499,10528,10048,9832,9945,10543,10021,9126,10735,10375,10665,10208,10266,9212,4234,10290,10935,2639,10938,10541,10990,10723,10289,10919,10783,10912,10895,10116,10904,10880,10871,10894,11021,3787,10892,11226,11202,2393,10115,11233,11135,10657,10715,11163,972,10778,1268,11136,10085,11220,2390,10683,11104,11287,11314,10739,11353,10740,10823,1181,11379,11172,9922,3482,10663,9249,11201,7869,10627,11324,11443,11377,11361,11439,10130,11442,11388,11474,10893,4217,4527,9629,9354,9630,9939,11213,9235,5692,10085,10879,11285,4652,9666,10341,10864,9471,9942,8923,7156,4131,9363,6595,9639,9353,10395,10057,10042,8888,10469,10039,10472,10569,8514,10341,9800,10245,10246,10523,9910,10745,10397,10743,10568,7354,8808,6639,7138,10048,10289,10342,10935,10934,10990,9983,10783,10892,6684,6792,10892,11228,10904,1268,10764,10472,4131,1425,11180,11340,11105,11340) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC