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,4971,5279,1167,2158,3823,6586,6004,2300,6561,6006,1425,6658,3555,3949,6595,5995,1591,6587,6583,6978,6962,6586,6588,7019,2145,6120,6103,6264,1558,2473,6710,7258,6445,7093,501,6713,7166,2658,6098,7871,4209,3904,6785,3604,3595,8349,8537,8342,8620,8620,8683,6583,2992,7753,8514,9104,5052,8088,4652,8413,9339,9130,9348,9563,9579,8053,9539,9366,223,6971,10212,9741,10307,3904,8739,10513,9945,10691,10690,10689,10588,9054,7675,8910,10629,11025,9198,9162,1232,11222,36,778,1777,1787,4774,6774,6693,2399,7008,6548,6637,6550,6638,3864,1787,1784,1775,1783,3913,1786,1772,1805,1796,6004,3878,952,7849,5024,5717,2447,6667,6584,3838,7912,385,7067,7067,3840,375,380,8880,8787,8881,8771,8771,8939,8882,8832,8832,381,374,8878,6270,6066,393,9076,390,389,381,8877,8878,379,372,372,2029,8926,4769,4770,104,1787,1785,2182,1782,1327,8027,7890,1366,1970,7374,7077,156,1016,4395,8279,8204,5986,6798,8482,7720,4419,4639,7655,2027,2374,8358,4659,737,6303,4079,8206,1116,2092,217,10145,446,6364,6632,6642,5995,7238,6740,7903,1609,6623,8225,4598,969,7143,6172,1586,5371,6714,6971,788,1085,8759,8611,1084,1085,1086,8763,5495,842,8757,7841,5914,3913,226,217,6806,3169,6195,6003,2079,6715,4248,7905,2643,6618,1609,3402,1604,2555,6619,4918,226,1662,8389,8434,9422,8449,445,7961,6592,9547,8019,7912,6879,9042,8178,7897,7846,1563,7846,9759,9889,4338,7921,9879,9754,9762,10211,1609,6646,6723,6723,9498,9498,6393,6393,9547,1772,6186,6186,8686,8686,1983,9843,8434,8434,10455,9849,10310,9849,10695) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC