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,2954,6188,4337,4185,4178,4767,1038,4199,5331,5995,446,5020,3026,3904,2054,5286,2262,6821,359,7092,4185,1433,2954,7713,4199,7714,7807,7804,4234,501,5373,1559,5046,6863,4355,7835,7836,7834,7836,2025,7837,7655,7655,7280,8027,8027,8027,8030,8030,6190,7238,801,4185,2179,5790,6181,788,2085,4683,6633,5209,2288,6240,3197,3169,2302,6175,1885,6896,6832,3250,7154,7086,1271,7081,6890,6361,7297,7285,949,2113,3172,7572,5564,359,7589,4639,1185,7254,2775,7971,324,4684,6769,2266,1381,7944,916,7708,7965,8354,6316,4349,4349,4349) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC