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,1738,217,545,6843,1520,1520,3609,7239,7239,7879,3754,8222,8222,4566,1954,3863,3863,3863,4969,4969,6377,8793,8793,8547,7897,7304,233,6977,7455,3327,3327,2029,7897,7897,6700,1973,2071,7743,6750,6742,6753,6381,7877,8917,8917,8531,5719,8356,1666,1666,6306,6306) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC