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,6648,2998,1462,587,6690,6900,6779,6979,2389,6900,7139,6981,7142,7141,5996,1537,7148,7268,7084,7124,5407,2776,4637,455,6267,3608,6437,317,7268,6969,2389,4460,538,8744,8354,4294,8585,9030,9042,3287,8314,7985,665,2522,8206,1089,4558,964,6691,6633,358,6891,7143,5915,6102,7146,7144,7238,6947,7130,5912,5421,4154,6364,6863,5331,6831,3428,4983,698,4765,6712,1184,7239,3647,7773,7781,7751,6348,3346,3728,7592,6687,7554,7754,7755,7756,7068,7761,7840,7879,8222,7878,7910,5997,7363,7288,8111,1089,7754,7554,7587,7037,8358,3744,217,8434,8523,6521,8438,7568,6691,5965,8535,6805,4784,8439,8435,840,7546,1145,1250,7020,6810,947,4558,964,6778,783,1089,6561,7496,6235,7409,7389,7451,6810,4558,964,8436,6561,7516,7496,3066,8111,6810) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC