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,7152,7115,7116,7272,7932,7096,7245,6726,7125,7241,7897,7106,217,7266,7084,8055,8071,7270,7671,1029,7672,8079,4597,8087,4770,8062,1402,4662,8384,7668,421,7675,8269,7657,3550,8019,8077,8657,8053,8363,8202,8739,8052,8081,7668,8468,7931,8418,8084,8056,7071,8471,8422,8641,8087,9148,8736,9053,7671,8475,2573,2328,2388,8450,3297,8438,8477,130,5915,8385,8041,8288,7656,8045,8042,8068,8407,8782,8065,8057,8060,8069,8067,8282,7660,8058,8051,7095,7097,7666,7669,9160,8359,9054,9055,8367,8419,9573,9574,9575,9578,8476,9577,9561,10022,8467,9539,10074,9793,9580,10077,9999,8235,8642,10009,10023,10051,9158,9565,9998,10075,9572,10186,10027,8082,8078,7076,7081,7108,9443,9445,9510,9581,10024,10026,9562,10076,8364,10185,10022,8767,8410,8085,8507,8528,6879,7628,10272,8411,8412,8398,8397,10275,9793,8396,10186,10690,10659,8286,10629,10624,10689,10030,9225,8439,10630,8408,10675,10770,10773,10691,8644,10811,10807,10774,8405,10625,6896,10835,10889,10891,10852,10853,9187,9204,9206,9218,10881,10906,10692,10862,10863,10834,9206,9219,9263,9262,9261,9264,9875,9876,10270,11066,10271,11062,8567,8473,9292,9313,8201,8207,7290,8569,9314,10965,8206,8537,9367,9368,11045,9316,8468,11027,10586,11187,10450,10405,10401,10890,11336,11224,11333,10572,11368,11370,9294,7275,8229,11331,8474,10694,8383,8929,7289,9399,9400,11376,11500,11501,11502,11507,11506,11503,11513,11542,11614,11538,11540,11528,8467,10029,7285,10025,8383,9560,9995,9442,9058,7766,9659,9821,9562,8768,9133,9578,9206,8039,10889,10007,7094,10742,7270,10730,10984,8722,7289,8070,7175,9367,6702,10692,10692,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,10007,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,8929,8468,10302,10789,8395,11058,8363,7655,8928,9601,10441,8063,7971,5784,8908,10768,10272,10609,10226,8446,7572,8653,7077,8737,10834,8722,9321,9719,10789,10583,10584,10272,10403,10591,9158,10692,10915,9370,8720,10007,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,10888,9148,8477,11626,10774,8721,9398,10614,11528,8055,8229,11108,11503,11652,10771,9444,8368) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC