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,7516,7516,8762,2182,2182,9195,9552,9925,1645,1645,1645,1645,2658,1349,7491,8859,7238,7647,7155,7110,8477,8063,8423,7068,8047,7258,8406,7574,7654,8049,7446,8208,9161,9161,8269,9398,9398,9247,9247,9049,2627,2627,2627,2627,2627,2627,7420,7486,7388,7431,7506,8865,8867,8867,8868,6365,3532,3169,7264,3169,4659,7548,8034,1487,3904,4360,8045,8049,8282,6870,7154,6870,6870,6870,7998,7999,7999,8199,8288,8067,7535,8446,8469,8424,7268,8709,7251,6693,389,6907,5883,6693,386,386,8788,393,8789,1524,9021,9021,8859,8859,372,7388,1116,1116,7660,8083,7068,7084,7084,8580,7088,7086,7661,7662,8063,8046,8034,8087,9543,9543,8391,9247,7659,9158,9158,8393,9020,9020,9020,7390,7493,1268,6691,3941,778,2294,1776,5927,4996,4568,1774,7270,7217,7153,7374,4432,6584,6664,7285,322,7277,3455,5020,7842,1325,3162,7834,7261,7287,7287,7287,7287,7287,7287,7287,7287,8050,6270,6954,2029,1645,8063,6718,7834,698,7836,6349,6365,217,6620,7208,8938,7493,7563,7563,9027,2520,8782,7654,8358,6980,9949,6774,6715,6715,10208,10208,9,9,8299,1571,4996,1953,8830,1624,7837,1571,10891,9866,8047,5066,5056,10717,5064,5053,1398,5770,7505,7505,7301,7301,4639,6239,7374,7374,820,820,6613,5996,8306,8828,8828,8828,8828,8828,8828,8828,8828,7130,5421,8973,8973,8973,8973,8973,9471,1771,1770,10041,1771,1767,1767,1767,1767,1767,4199,6809,9391,10892,10543,5376,8515,8981,3327,4405,7998,1016,9029,1385,1385,3728,7607,6170,217,8435,8626,2262,8761,1381,7884,9481,6103,134,3908,9649,9736,9757,9389,7175,8891,8658,7262,3428,9387,10538,10767,8517,10584,9387,10583,10769,10738,9594,10412,11332,11045,11096,8712,9247,8284,11632,8430,11686,10582,11261,8034) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC