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,7263,7125,7097,7106,7276,7249,7095,7119,1302,7117,7123,7089,7101,8053,7241,8048,8047,8057,8055,7102,7096,7943,7574,8041,7243,8062,8045,7245,7068,7116,7659,8368,8040,8040,8202,8202,8202,8071,8429,9158,7110,7112,7668,7672,7241,7656,8269,7675,9206,7269,7269,8471,7101,7657,8082,8053,7081,7152,7152,8735,8735,8735,8735,8735,7108,7656,7660,7085,8230,8230,7152,7574,7100,6971,8058,7647,7082,7671,7671,6726,8066,7271,7271,7271,7117,7102,7121,7906,8576,6740,6740,8574,8065,7091,7263,7150,7125,8109,1371,501,7110,7895,7112,7897,8199,8198,7266,7114,7125,7267,7093,7087,7084,7675,8048,7152,7117,8477,8417,8076,7115,7671,8385,7932,8084,8045,8055,7574,7931,8473,8042,8082,9139,7241,8739,8739,8739,9563,3554,7935,9879,9148,9874,9875,9873,9876,9877,9878,10022,7671) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC