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,6928,6758,6911,6757,6756,6391,6753,3247,6917,6719,6763,6764,6765,6762,6761,6414,2282,6932,6754,6752,6423,6935,6759,6925,6760,6427,6757,6912,2274,6910,6938,6423,6424,6926,2275,6426,2282,6756,6191,6911,6758,6763,6756,6932,6926,2274,6757,6935,2275,6423,1537,418,7096,7268,7089,7121,7125,7084,7288,6751,6750,6517,6076,6377,6742,6743,382,7278,7278,7287,7287,6151,6604,6742,388,1557,6745,379,7123,7123,7123,3889,7264,7971,7971,3890,7107,7647,7245,6540,6970,7282,217,7100,8055,7649,1666,8641,8050,8047,9229,7304,9797,7124,7099,7150,7150,7150,7105,7104,9796,7155,9794,8434,8434,6925,397,397,6916,6840,7680,10381,6146,6151,6916,6426,9165,10432,7870,8157,10695,10136,7055,10387,10381,10390,10390,10386,10386,10488,6762,6916,6752,6759,6754,6760,6761,6928,7162,323,11003,8696,8693,8656,4305,4299,9483,4299,9483,4292,4293,10920,57,7953,10823,10725,9590,11161,10199,9829,9533,9675,6759,6762,10649,10417,10487,10488,10813,6754,860,10431,10390,10388,6761,6760,10382,10387,10386,857,6913,7162,6840,6926,6925,9735,10445,6381,6391,6914,6763,6915,9165,8693,8156,8267,7200,7199,7196,7198,7194,10996,10797,7195,6917,6988,6922,8267,10599,10600,10598,9087,10505,11077,10445,11078,11079,6935,11080,10603,11075,6916,6933,6936,11077,3277,6928,6929,6934,7190,7191,7192,6937,6385,673,9178,10597,10593,6421,6423,6920,7042,6424,6425,11103,6426,10486,7055,10389,10426,10428,10381,10957,10222,10264,10421,9176,9177,9190,10167,10384,10420,10423,10425,8987,6491,6417,6517,7680,863,6920,10812,6919,10423,11091,6916,6753,6760,6913,8882,10813,857,6762,11101,6761,10390,10387,10389,8983,8982,6914,10489,10167,368,10457,10601,6917,5508,860,858,863,6919,6920,857,6913,6753,10384,6919,6917,10384,6753,10387,10423) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC