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,9190,6420,11617,11616,1609,1609,4570,7975,3247,3247,9076,9076,9076,9076,6766,9879,6726,6971,10198,9890,8109,10471,10474,8903,10526,10202,9741,9995,9815,6216,8041,8034,10264,8867,8047,8048,10008,9719,9853,389,8476,10185,10404,10510,8400,10597,10601,10596,9794,9076,8419,9059,9082,9662,8404,10011,10029,9247,10767,7282,8227,8472,8471,8475,9367,9762,653,4805,8292,7042,11085,778,10336,3511,11216,11568,10107,6191) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC