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,6599,840,6130,2576,6189,2749,6158,52,6780,2849,6595,5904,3728,5906,6733,5995,2157,3913,1370,6855,5996,6312,1764,4405,7304,3860,6740,7897,8047,272,409,417,2343,7039,2263,6850,3574,1825,6139,2009,5959,8284,8926,9042,7828,6794,7148,2263,8299,5790,5810,5952,5962,2343,6870,7640,4769,6550,7853) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC