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,6795,737,7307,7083,6549,6549,408,3891,7238,7238,7976,6740,7304,7094,6004,6004,8529,6390,8402,8410,8292,8292,8479,8686,8435,7897,6658,8302,7995,7995,8613,8613,8292,358,2005,2342,2342,8290,8435,5763,8683,8683,7554,7754,7755,7756,7927,9128,4659,4659,4659,7437,7437,7437,7437,8863,8863,8863,8863,7649,9957,9874,7420,7486,7388,7431,7506,8865,8864,8867,8867,10687,6715,9949,7751,8831,7273,7291,10185,10510,7289,9138,8794,7543,7400,7419,7472,7541,7491,7563,7390,7449,9853,9025,7290,11201,11477,11479,11480,11476,1624,820,6801,10677,10817,6803,10985,2538,11053,11215,10707,11380,3105,3108,7383,7409,7408,7406) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC