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,3863,6445,6667,5435,1993,3865,2041,1357,6775,7391,1461,4061,6631,7493,7437,7389,778,1732,7467,4996,4999,5872,6619,1571,6275,4991,4991,6586,6715,6715,6715,3555,3555,3555,3555,3555,6295,6295,6295,6402,6402,6402,6548,6400,6400,6400,6400,6400,2005,7920,1774,1775,665,1786,3108,8130,1782,1779,9796,9857,9791,4989,9577,7898,6550,8439,10346,10272,7898,8087,8055,3108,3108,6286,8563,7048,4991,4991,10670,10670,1785,1785,1785,7216,7216,10881,10881,10026,8577,2399,7273,7291,10185,10510,7289,9138,8794,7543,7400,7419,7472,7541,8868,7491,7563,7390,7449,9853,9025,7290,11201,11477,11479,11480,11476,1624,820,6801,10677,10817,6803,10985,2538,11053,11215,10707,11380,3108,7383,7409,7408,7406,11328) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC