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,7271,964,7281,7095,7032,7262,8839,8204,1511,8472,4558,7296,1172,7280,7068,8419,7285,8423,8474,8770,7275,9049,8712,9508,9508,8439,8409,7674,1089,9793,783,8782,8229,9620,7286,9658,9658,9619,7279,10051,10185,9817,9817,8207,9956,6778,6778,10272,9819,9577,9813,9957,9562,9510,9818,10271,10401,9053,9312,8237,7285,7289,10407,10888,10891,10843,8929,8468,10302,10789,8395,11058,5576,6583,1207,6656,3385,3384,8693,8694,7599,4784,1967,4714,7187,5046,8665,1685,9137,3037,8071,7273,7660,8429,8034,9795,9563,9873,7280,7278,8709,9225,8386,7674,8909,7265,9053,7272,7278,9611,9610,1095,7989,7943,7108,10403,10409,10009,8467,10029,7285,10025,8383,9560,9995,9442,9058,7766,9659,9821,9562,8768,9133,9578,9206,8039,10889,7094,10843,10742,7270,10730,10984,8722,7289,8070,7175,9367,6702,10692,10692,8425,9057,9508,8462,8928,8081,9286,9995,9441,9560,10449,9082,8444,7113,8459,9998,8794,8438,8207,8571,9370,10030,8740,8424,9530,8468,8427,8086,7080,8063,8426,8720,7574,8205,10888,10591,10659,10774,10615,9957,10807,8928,8438,9973,10011,10009,10854,9875,9876,9877,9874,11064,11065,9878,10029,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,10577,10675,10272,10275,10575,10629,10630,10906,9743,9508,9562,8034,7077,9261,9564,9581,11059,10689,7108,9580,10855,8087,10854,7153,10965,10887,10881,8046,10888,8086,11034,7279,10890,10506,11211,11035,10507,9443,10508,7261,8364,8644,8961,10404,10449,8057,8368,8443,8050,7289,11276,11061,10509,10274,8472,11331,11411,11278,11065,10511,10889,8767,8207,9738,11367,11536,9057,8414,8474,7150,7666,11210,11674,11668,9148,10941,10943,10947,10942,10623,10944,10624,9821,9956,8450,10945,8468,8646,8428,8415,11630,9997,11262,10946,11760,10625,11712,9095,11211,9957,10573,8929,8737,10834,8722,9321,9719,10789,10583,10584,10272,10403,10591,9158,10692,10915,9370,8720,8424,7261,8427,8721,10582,9742,7574,7895,7935,8450,10588,10690,10586,10623,10767,11034,11150,10770,10789,10807,10833,10858,11187,11273,11275,10835,10882,7069,11335,9148,11063,8461,10863,11369,8571,11334,11411,11333,11064,11196,10843,10888,9148,10450,8560,6381,271,539,2729,7304,2729,9438,7903,9300,9480,3647,1215,8306,9425,4598,8874,4598,8241,8244,8706,9182,9349,8337,7928,6768,9417,8245,9898,8922,7,9017,9432,9632,9296,10056,9296,9096,1165,222,3883,10292,810,10259,810,6359,9864,10337,6272,10337,10072,9959,3358,6348,10640,8144,4301,10738,10667,10976,7833,9777,10814,11037,11130,11121,10951,272,10937,10954,9880,11323,6354,2530,104,374,8490,11496,9277,2117,11272,11439,11690,11721,10533,1385,1402,11734,10269,10836,11300,8610,10888,10720,10976,6870,11189,8144,8030,7149,10011,7910,8208,4254,8892,5763,8891,5371,10768,11386,8370,11384,9557,8482,7280,1049,10869,1343,7277,9757,1016,5988,10649,9739,9959,6103,28,7208,7247,9740,10854,10855,11188,4598,11471,1308,7641,11277,8400,11402,11553,10906,450,10011,10694,11271,10510,11572,8577,8471,8547,10818,9136,11676,3908,10483,9563,10884,10372,8,11707,11634,11706,10275,7273,7248,11709,11743,8279,10270,10977,11746,11771,7088,11776,11376,10965,2447,11704,10789,8178,11818,11839,6264,8022,11840,11283,8891,11879,10051,4659,7281,9609,3967,11337,2847,7077,7287,7286,11526,7147,8377,7249,7088,9739,7081,8571,8638,8371,8641) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC