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,220,7546,1992,3891,7037,4639,7605,8110,8547,8305,6971,8109,6767,1453,6891,4969,7783,6785,6726,2522,7632,7006,7632,7006,9752,9788,9752,9788,9695,9682,9950,9953,9951,9681,9686,9681,9686,9049,9868,10182,8884,10259,10260,4906,10273,10332,10327,6197,10607,10328,1411,7567,2820,4297,10558,3515,10563,6201,10218,4299,8332,10158,5386,7569,10137,3442,10099,4292,10333,2826,9593,9430,10200,10560,7696,4293,4305,10322,9114,9426,9424,9409,4298,9112,9113,8883,2824,10136,9894,9633,4304,10215,8662,9908,4294,6200,2825,10218,2823,8727,1765,9120,8326,8627,1771,9626,4296,1768,7174,9037,6689,1767,2808,1766,510,1771,9473,8944,9669,9407,7752,7677,8627,9920,8432,9474,10154,10725,10642,8971,10139,9665,9475,10155,9601,10298,10729,9493,10238,10522,9383,10637,9867,8586,10152,5576,10877,7636,10232,4386,848,1368,10828,7580,9031,10641,11048,11008,6800,11046,7870,11088,11019,10329,10864,9854,9911,10645,11007,10565,9912,10463,10647,11047,10866,10923,10646,10154,4464,11014,9046,7019,7165,10155,7166,4486,8780,9215,4470,7761,10157,7677,10156,7551,8222,2818,10519,11051,8793,4855,2816,11109,11183,11184,11022,11192,10706,11193,9168,10053,11191,2780,11241,11231,11242,9690,11149,2791,10544,10496,10687,9709,7792,9686,11380,9696,9681,11497,9866,11497,9866,9718,11227,9710,9705,9682,9684,9685,9688,9689,9691,9692,9701,9709,9711,9713,9686,9690,9693,9696,9681,9708,9714,9716,9700,9699,9700,9699,653,11811,10481,10722,9096,6183,11734,10228,9694,9716,9685,9681,11227,10455,11726,11727,11730,11731,10106,9717,9710,11809,11742,11808,11811,9715,11810,11729,11728,9713,9714,9688,9689,11855,9694,9701,9692,9709,11732,9708,4,10107,9682,9686) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC