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,2417,7219,4607,5907,5907,7815,7815,7815,3957,3957,8860,8860,8860,8860,8860,8860,840,7546,1145,1250,7020,6810,947,4558,964,6778,783,1089,6561,7496,6235,7409,7389,6810,4558,964,8436,6561,7516,7496,3066,8111,7127,6810,7485,8423,7385,8063,1215,8401,8477,8423,8866,7480,6561,7607,7497,7472,7458,7457,7443) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC