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,8349,6794,6391,8314,8245,8350,8316,2474,8317,8320,8315,6965,6396,8246,8249,8334,8243,6512,1726,8244,8319,8331,8335,6512,8356,6393,6939,8351,6807,7546,6967,6510,8357,6383,8354,6174,6961,3248,6607,1738,6527,8884,6966,6984,7964,6221,6511,8336,8245,8328,9112,9119,6497,6216,9052,9145,6110,3076,6396,6965,8349,6962,9113,9111,9156,1726,9120,9143,9150,9030,6646,9144,6383,7157,6961,1828,6963,8306,6806,9482,9407,1886,8785,9084,8682,1084,8618,8786,8788,8542,8389,1662,6787,8290,7027,1884,9507,3169,9547,9374,9090,9386,8435,8196,9729,9497,6520,9713,6171,6533,1770,1766,5692,1767,6263,1770,5743,124,9482,9868,9668,6538,6595,5331,3904,6599,6141,4598,6190,3598,2021,2830,5564,2145,1500,1645,1565,7374,6190,8022,9460,5454,5209,6381,1662,1089,8765,6134,6134,8716,8434,7852,4752,7810,3891,9392,2263,7974,3809,2266,2266,1089,1089,1089,7143,8547,7903,6642,8952,8358,8514,2029,8948,8922,6740,7641,8220,7238,8912,3850,9030,6849,6845,9300,6104,7019,8780,446,2658,9212,8520,9366,4178,9386,4178,7833,9366,186,8306,5995,8816,8169,9936,10056,10126,9079,10240,2925,2467,228) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC