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,7149,3148,1804,1787,1807,1084,1811,6832,2458,2157,1786,4399,6235,1497,427,8280,8091,3395,7890,6364,1209,4535,4251,3148,2946,6209,7775,4724,1385,2521,8027,9118,8425,223,9299,9234,4774,3783,156,5245,6788,1324,2266,9557,9741,7245,8400,9978,9652,7998,1016,9029,1385,1385,3728,7607,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,8864,11096,8712,9247,8284,11632,8430,11686,10582,9046,4901,8817,8817,6103,9215,4827,2989,9557,8780,2749,1487,10321,9883,2986,1764,7299,6855,10093,6806,7587,10781,1308,9934,4639) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC