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,7243,7074,7092,6190,7280,7269,1242,7122,7113,7574,7091,7118,7109,8087,8909,7085,7572,7095,7666,7252,8401,7241,8213,8080,7245,7281,7246,8384,7654,8452,8909,7251,8362,8208,7713,7243,8772,8736,8736,9133,7714,8782,9132,9622,9747,8395,9620,9621,8768,9610,9058,9059,8419,8087,8085,9611,7280,9205,7275,8240,8081,9458,9748,9876,9875,10077,10030,10075,9141,834,9581,8206,9997,9951,7767,10061,5564,8639,4659,324,8772,9998,9989,9763,9579,8229,8063,8928,8922,8628,8050,7112,8792,8431,8510,4544,1828,1726,9968,9959,8650,10034,8364,8287,10379,10402,10693,10694,10590,10592,576,576,9729,7096,7110,6740,10023,8087,9148,9529,9539,10211,8462,7265,7766,8451,7285,10278,435,7895,9447,2294,9300,11228,1253,8467,7285,10025,8383,9560,9995,9442,9058,7766,9659,9821,9562,8768,9133,9578,9206,8039,10889,10007,7094,10843,10742,7270,10730,10984,8722,7289,8070,7175,9367,6702,10692,10692,5996,4801,5371,3913,2117,1765,7610,7985,10075,7080,9161,10582,7174,10586,524,7674,527,10587,6216,8041,8034,10264,8867,8047,8048,10008,9719,9853,389,8476,10185,10404,10510,8400,10604,10597,10601,10596,9794,9076,8419,9059,9082,9662,8404,10011,9247,10767,7282,8227,8472,8471,8475,9367,7246,8111,9747,8368,7292,8212,7069,9933,5052,5052,8743,9400,9205,9205,5066,5066,8885,7671,4019,10272,7653,9844,9048,8410,8071,9739,8404,130,10510,9563,8204,9539,5961,458,9399,9444,9148,8370,8651,8450,7277,9443,8637,6181,10623,9367,9056,8373,10026,2761,9445,9447,9083,9719,8438,10095,10591,10659,10774,10615,9957,10807,8928,8438,9973,10007,10011,10009,10854,9875,9876,9877,9874,11064,11065,9878,10625,10835,10834,10965,9744,9796,9821,10811,11108,11063,9955,10888,11187,11196,9148,10623,11210,11212,10614,10855,7576,10617,11525,11331,11500,11892,6740,126,7265,8220,7265,8220,10449,8377,8413,7077,8429,7717,10575,8639,9441,9873,9794,7879,7657,9312,501,9292,9313,8477,8269,9148,10023,10075,9161,9264,7659,9158,10027,10403,10404,8928,8208,9148,10022,7669,9225,8079,10403,10449,9530,8832,10409,8235,10437,10609,10588,10774,7110,10591,10835,10889,8468,10575,9219,10836,10272,7125,9401,10887,11059,9058,9968,9091,9054,9139,9160,9187,11065,11034,11035,8073,7077,8040,10586,9447,11402,10580,11221,7696,10925,11178,11179,11183,7693,11037,11146,7870,4294,7189,11015,5635,11148,4386,9909,11331,10889,10920,10475,7697,4,11255,10863,10835,10921,10923,10486,7694,2605,10828,979,9149,10545,10840,11177,11375,10075,10520,1685,10521,1266,4390,4282,1411,8696,8695,8654,8656,11175,5297,6359,10827,11249,7808,9137,5332,6995,8694,1769,1768,10522,10922,11154,8655,10027,3442,6520,810,11251,11317,1685,10546,11185,11182,11181,11186,11318,11184,10924,10639,10641,10645,10646,10643,10642,9880,10644,10647,10753,8693,11458,10644,10822,9933,8694,3895,8692,8655,10645,10637,11252,11321,11176,11590,11432,6354,1766,8946,6688,10331,9794,7881,7753,7752,10053,3070,9665,8627,11584,9679,9867,10544,10975,6689,7266,10927,3073,10926,7676,10930,10931,7600,11109,8727,8088,10232,3071,11582,11578,7188,7176,7186,7178,7187,7184,8897,7181,11419,7180,6652,272,11422,11013,9037,6654,11148,10928,11016,11221,9250,8944,7183,9223,8945,8943,8011,8247,11431,7182,8585,11418,510,11149,11601,9383,6653,11723,11579,7179,7185,6426,11019,11218,11493,11722,6271,10329,10333,8241,10332,8337,11420,11465,1303,11176,11650,10327,11427,11429,11463,10931,8727,9920,11421,7870,10323,8883,8310,10565,11147,4386,11464,10238,8333,10555,10640,9407,10216,8308,8314,11146,8244,7151,7024,8318,8248,8585,9120,11466,7663,7103,3874,10519,10641,4146,10639,8880,394,10643,10752,1266,11799,9037,8787,10637,10647,10640,11723,10646,11321,11836,10931,10463,7753,7752,8325,11624,7604,8088,7600,9665,10975,10053,8627,10544,3071,10644,8944,8943,10642,8727,9383,9587,9867,10232,9589,8945,11221) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC