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,455,2766,2389,358,6364,1402,217,11658,11774,1250,11650,11660,11659,10454,10321,9537,11662,9543,11657,9679,10228,9889,10860,4701,11770,1645,525,550,601,933,1589,2390,1070,3264,5848,3557,3828,808,3302,5305,5552,2876,4218,529,3610,3392,4454,3048,3803,1928,1927,6950,6122,5915,6350,713,5256,6725,3754,663,1200,1313,358,6169,6162,2576,6588,6590,1000,1453,725,6159,4735,3216,6645,6168,510,1250,6160,4512,2873,2170,4038,2723,2934,1444,2573,6772,3850,6660,6204,4146,7089,553,7297,547,7107,535,545,546,547,548,549,3714,7516,524,542,6569,536,536,6100,5914,8372,7102,8055,8055,7083,7270,7270,2873,8408,8832,8832,526,2447,9632,7664,9107,9973,8363,8081,9082,10025,8185,2374,2182,6100,2317,6103,4037,6632,5193,217,4901,8031,1439,8290,322,7961,7861,8541,5904,7592,2873,7904,3926,8164,8164,8164,6191,6191,6750,4432,9038,858,3913,800,5647,8434,5732,9373,9549,7175,9277,9654,9335,9677,8688,8904,9197,9635,6337,834,2869,9636,9295,9149,9764,9811,107,1351,9651,9933,9680,6517,7138,6420,8387,4037,435,3612,1490,5142,3201,4452,6523,7981,4282,7919,3159,4600,9275,1536,7985,5321,4645,4301,6215,1349,8146,6364,9248,4199,2594,5251,8795,6595,4798,1368,7953,848,848,7580,9300,2989,9273,5039,4730,4901,8257,5210,9466,9637,9376) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC