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,7261,8251,8368,7294,8366,8366,7661,7661,8434,8434,2555,3402,7747,2171,2643,3409,9095,8241,8243,3898,3898,6596,536,545,549,524,531,547,3884,397,3890,9622,551,6139,553,1704,5454,3891,2520,2520,9612,7297,1084,6493,8242,546,6768,7374,11709,10464) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC