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,1439,6793,743,5088,7290,6901,2863,4217,7047,7837,7275,1895,2677,6902,5623,4432,1954,3590,6901,1826,6553,419,7063,2677,7029,341,6860,2956,3760,7879,7840,341,8502,6718,7674,8171,8436,470,8587,8488,8095,8616,8094,8587,8886,2956,3788,6562,6563,2334,5222,3417,3282,743,9002,8997,8993,8994,9001,7233,6990,7783,7029,8617,1416,8870,5765,1577,2889,3029,2766,6824,5692,2331,7034,9002,8587,8993,2957,6790,8004,3590,9321,6780,1568,7712,6902,7029,8488,8095,8780,7619,3564,1131,444,2331,2334,2592,955,9390,2956,2446,9363,1834,971,3418,3479,8923,1893,9463,7787,2454,9511,9512,9531,9532,9528,9551,9568,9571,9570,9566,9002,9001,8094,8095,7000,9531,9419,1532,9321,8996,8094,8834,2680,9783,1163,7618,6882,2698,9981,9982,10005,10004,10012,10013,10014,10017,10015,4422,7907,10019,6828,10109,10110,9947,9982,10108,9948,10118,10165,10112,7830,9570,9226,8845,8461,7674,6556,6557,7618,926,6095,2923,6551,6555,1278,1815,6068,5856,9987,10267,10221,7792,6205,9987,10413,10414,9620,9619,8083,8034,5066,3358,7605,10397,2329,9532,10345,6555,6551,6248,6552,7829,10266,10141,10127,10632,10635,10395,10266,10621,10620,10619,773,9200,9116,8978,9290,6635,9798,8431,9650,7272,9742,10571,10574,10585,10772,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,6567,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,6007,1834,8994,2151,6676,9002,9068,6860,8997,8996,8814,4316,5298,8840,4037,4038,8587,8587,8834,834,7879,2006,2912,650,5877,7718,6940,1038,6104,7840,8103,7203,7919,8149,8183,7878,6740,6740,6997,4178,3131,6740,7238,8220,7903,8222,8793,7833,8615,8611,1416,8886,3595,8095,8094,8488,6365,9030,8993,8587,8681,8698,8616,9195,7160,1152,9052,9117,9321,8817,9001,9300,8617,9463,9463,9614,9552,9002,4109,8918,8997,9925,9879,9879,9879,8211,9783,8770,6376,9185,6940,3850,2706,2956,8094,7685,8095,7691,6562,8147,6678,7224,7230,7690,6565,8289,6882,6571,6570,6575,6574,8488,6736,6990,2469,6567,4086,4086,4086,4086,4086,4086,4086,4086,4086,4086,9947,7699,9002,8993,8997,8997,8997,4079,6870,6740,7238,9033,8220,3159,5020,5817,7920,6785,8305,1349,6901,7037,6848,5903,9258,7919,3216,1834,1830,1110,986,4131,780,772,6679,6001,5764,6971,743,9063,5011,7143,4617,9837,9541,9471,5142,7856,7758,9924,9928,30,9929,9937,4109,8142,9831,8813,9783,7221,6397,5328,1313,9963,5544,4164,1707,1237,9916,9769,9222,6599,10088,10090,8912,10087,9990,7893,3346,9941,10001,3787,3657,2446,10165,836,3287,10350,9607,10148,10132,10315,10342,10134,10526,6691,6986,4019,9614,9372,10543,9406,8910,9937,8836,10012,10685,10955,10988,9554,10734,10548,11020,11018,9950,11042,8795,4652,217,11027,10512,11127,10938,8222,8793,9552,9925,11219,11285,11202,11288,1698,9922,11353,10246,11230,10568,11495,10974,11397,11235,30,11655,10660,11217,11646,7064,11598,11455,11644) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC