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,3612,4432,6315,5020,320,1536,1268,5477,2244,6858,7989,7990,4395,4079,7880,7759,6779,5640,7008,2503,232,7760,6986,4761,1268,1345,3419,4985,8215,7607,8219,801,4234,6533,8556,4432,6532,8361,5732,6223,4224,8323,501,8324,8596,1536,8425,8325,8404,7570,6751,7568,7762,8249,8248,8322,8245,8318,8246,8683,8317,8323,320,8319,8247,640,8597,546,539,8085,8339,7238,8342,8332,6726,8338,979,7672,8404,3878,7903,730,7143,7546,8615,8586,7870,8584,4432,8460,512,7092,1461,7771,8583,5020,8398,8401,5995,857,7772,8044,8063,1927,5331,1917,1929,7833,3581,8334,7660,1928,7659,1268,4969,3701,3933,5362,6497,2244,5477,1536,7268,3875,4603,8332,4599,542,536,4600,539,4602,6315,8215,529,320,553,3612,8724,3701,544,8275,8946,8343,547,9291,524,9301,9289,9337,4652,7666,7037,1349,8365,9374,8044,9346,8573,739,9248,7270,8805,8934,7913,61,7261,7068,8915,1741,566,1210,1207,7580,7755,5143,5251,7756,8509,28,2677,7554,7927,7143,1453,7833,7903,7304,5477,2389,7238,6845,8005,8220,6315,1402,5688,3957,1536,7992,1327,8489,3644,9300,8948,7593,906,7869,1349,5810,1173,4185,4185,2894,8680,9614,9984,9298,10168,1536,1073,3701,9666,8948,9832,320) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC