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,7094,7104,7068,7070,7124,7107,8212,6740,8085,7292,7292,8471,8471,7286,7261,7261,7150,7150,7079,7079,5053,5053,7643,7643,1126,2520,2520,8200,8200,28,28,28,28,8167,5053,3380,5051) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC