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,1521,10062,252,9352,7017,9454,9638,6863,2337,4805,5373,5142,4136,3542,585,8888,10116,107,606,2918,10009,7249,1894,8930,8473,8056,1650,219,10120,8055,9768,9769,1176,3715,926,8900,7615,7582,7550,8089,6713,8837,7016,5812,5379,7614,10112,9630,3625,9086,8925,3413,8805,8915,8901,8902,1349,9454,9249,8795,10244,8068,9220,9874,9873,9876,9875,9878,9877,9289,9352,9346,4082,7602,9654,7655,8935,10063,10227,9879,10526,9910,8934,9197,4805,10528,10245,9402,4652,10523,8368,7092,10272,162,4209,7903,5729,8890,6251,8800,9900,9817,10115,10699,9993,10229,10246,10341,9248,8804,9464,10548,10894,6876,9081,7019,10856,10895,9363,1461,7761,8222,3595,10904,6710,8793,10569,7155,10858,9195,1520,7209,6633,6964,7133,7025,6315,6632,6635,6779,4950,6961,1038,6713,1126,6785,8031,8543,744,6117,1869,1600,6857,3941,24,7581,30,6679,28,2590,423,9347,9376,9333,6639,5247,6683,9634,4131,93,9648,585,2882,4355,2160,2381,7156,5764,7615,2419,361,9769,9768,467,9569,9868,9807,661,9824,10004,10048,9471,9942,6171,10055,3048,9421,36,10080,5692,3437,6848,3775,9945,6797,1237,3197,9951,9950,10149,10129,10041,8902,6857,6117,6845,6104,9798,10047,3368,9930,5379,9988,9945,3100,178,179,1461,9661,9648,4136,10063,9928,10229,9914,9634,7354,2018,836,3115,6942,9929,7900,8904,360,10289,10314,773,3341,3787,231,107,9961,606,3657,10467,7616,8796,8803,10048,10287,10286,10285,10319,10376,10660,10662,10661,802,10374,4023,10288,10266,10313,10737,10734,6171,10469,10300,4791,5143,5112,9220,10373,10569,5777,10476,10878,10244,8936) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC