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,7420,7388,7431,7506,8865,8864,8867,8867,8868,7574,7084,7093,8580,7297,6482,8460,7268,9264,7674,9264,9022,9022,7420,9022,6367,6367,7083,6691,6691,8,5947,5947,7654,9999,9999,7273,7273,7273,7084,6583,6583,8700,4639,4639,1770,7491,7546,8863,3334,3327) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC