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,7499,3863,6658,6969,1302,1302,7460,7561,1776,7094,7115,7111,7082,7069,7268,7100,7539,7152,7125,7075,7087,8053,7112,7121,7115,8456,964,5996,7444,7105,2389,3449,3449,8015,8015,8015,8015,8185) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC