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,6561,6006,6000,1425,6658,3555,3949,6595,5995,1591,6587,6583,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,6173,1313,6563,7024,6189,1407,1441,6181,6546,1165,4450,3073,6654,3115,6204,7748,360,444,3041,6732,8118,4986,5635,778,8358,7077,8222,8738,8765,3070,1537,7835,9052,435,8439,7304,6870,8526,8526,8526,8048,10010,10377,10591,10592,10467,10587,10692,9300,8783,915,1993,9162,10468,10372,11114,10687,11739,2872,6102,11497,8302,1811,11346,6718,8686,9547,8434,10169,9865,8922,11400,9972,6717,10707,10290,1983) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC