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,6766,7158,2029,783,7249,6004,2006,7834,7903,7998,4046,6971,8204,8204,6894,3824,7081,8087,7659,7149,8206,379,8290,8648,8648,8648,8547,8547,8547,8713,8706,7928,7928,8611,8948,8823,3066,961,8198,8948,9053,9053,8415,8743,7670,2261,8023,7118,7151,7675,2024,8447,7245,8444,8460,8765,8460,3385,8365,8067,8067,7074,9349,6806,8995,8995,6270,6270,2122,8787,392,8858,8786,8784,391,9481,7082,9418,7554,7754,7755,7756,7927,8868,8868,8868,8868,8868,8868,8868,8868,8868,8868,8868,8868,8868,8868,8868,8868,5995,6740,8306,186,4983,6726,9309,9405,8436,4144,8436,4144,8436,4144,6714,6367,6700,8171) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC