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,1813,1378,1726,6129,6123,5116,2027,5406,6155,850,6766,1029,6725,7238,6740,6001,8220,3644,3702,2029,7871,2006,6366,2615,3754,7878,8481,2063,8231,1453,8390,7917,7992,217,7928,6130,3702,7832,3029,7906,2753,7160,6588,6157,6177,5420,4140,5908,7144,7088,8041,6740,6641,2029,7276,8384,582,6633,8082,6118,6349,7238,1516,7941,5582,7101,8049,6780,7911,9139,7589,8305,6141,7634,7929,9611,9610,8947,8628,9235,9031,5908) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC