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,8171,3889,6534,1257,2573,2183,7840,1345,3830,1126,6122,3302,8306,6660,7757,6658,8613,7833,6506,6533,4218,6715,7903,7143,3216,8514,933,3557,947,5305,5848,3217,6562,7180,3889,6571,4796,6570,1181,6255,3989,1057,501,4901,7184,455,1349,3520,9032,4109,3850,8913,2360,7795,5148,8842,8183,5552,8912,7031,9130,6712,8230,1738,8274,8871,7635,8271,3073,8903,4355,6876,567,1461,3071,9354,6689,9273,9200,9039,9369,7752,7753,9365,8088,8627,9037,8948,8851,9353,8943,8944,7881,146,2473,7234,1038,4735,9371,6684,9614,9773,9772,9767,9900,9386,9525,145,9879,9814,9788,7917,7772,510,5362,9938,9936,2039,10053,9665,10001,2033,9986,5770,9987,9991,10141,9951,5484,9769,4510,8192,10188,5839,10002,8826,4945,4941,10257,9981,9982,10179,10292,311,6512,10208,10173,3883,9618,7299,9832,5454,7986,9812,10116,10368,10146,36,7699,10398,8541,9916,10314,10268,10303,10290,9888,10544,10534,8815,6971,10526,10540,8780,10474,10505,7985,10664,10048,9116,10535,3881,3890,10737,3897,10736,3894,9946,10552,10542,9838,10607,10551,10322,3066,10162,10565,8584,10330,8682,10606,9407,10545,8586,10726,10336,10519,10728,11017,9679,10238,10970,8699,11057,10198,8618,7870,10931,8241,8244,8598,8597,10750,8585,6497,9084,10565,11149,6215,11218,11049,8682,6733,9076,9797,8407,2520,8236,10615,10941,11063,10400,10906,8409,11692,11693,7651,7167,7654,4520,7077,8580,8015,9543,6197,9873,2520,11331,10941,7166,8585,9874,7250,7165,9875,8584,11354,9719,8212,11149,6354,4464,3070,7662,9876,9877,3073,8577,8199,3071,9878,10045,9601,6689,8577,7168,9367,7169,4791,7164,8662,7654,7297,6774,1730,4486,8580,7173,7298,7587,7604,8154,7165,6181,9375,7206,10970,1667,850,10510,7283,1257,7175,11133,6650,8882,11052,6794,6769,11102,10892,10291,6459,5913,6042,9367,9368,10522,6621,4473,9028,10671,10829,10546,9738,2856,7080,9816,7584,10185,9405,8939,8574,9710,9258,10023,11222,11101,11286,3913,7088,8771,6806,8419,11315,8689,11291,11331,10188,11351,8520,11300,11345,10767,8822,9083,11344,9669,7273,9305,6076,9670,9671,10839,8092,11347,11409,11449,9671,9954,10672,7046,9955,984,10761,10220,10675,10767,2085,10869,10947,5922,3346,11235,10568,3026,9212,2933,8445,11126,7666,7265,252,10568,7245,10244,9748,10288,9747,10065,9638,8393,10857,8999,1699,11349,10856,10895,7883,11123,608,1521,4460,10042,10266,5817,5339,10569,11237,1253,3080,6858,9372,6730,11028,10243,7839,8213,11558,10787,9454,8548,11495,9832,9125,2294,8888,11632,5545,11573,9220,7126,4258,7017,2337,11488,1347,9904,11647,10541,11669,7839,8764,10671,4558,10983,11372,10747,206,11724,10291,9372,3413,3625,10292,2933,11678,11782,4136,4082,964,11691,7970,11839,11884,11871) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC