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,964,5996,7444,7105,7384,2389,3449,3449,8185,4432,6368,7897,1604,4860,4784,4796,4788,4512,9679,8945,9867,9665,9439,510,10053,7772,7770,10232,7771,511,512,7637,7638,7596,535,549,548,541,542,538,540,539,537,536,543,533,532,529,531,10544,3719,10354,3115,8559,3559,9624,8705,7751,7972,507,2018,7973,9626,8704,8174,10646,9137,8174,9625,10642,5484,10647,10840,10228,10239,10981,3385,10323,979,10520,8584,8586,8682,8585,11019,9343,9084,9407,9920,7605,11050,11057,10331,9119,8714,10324,11218,10329,10328,10330,8243,11155,11156,8241,10606,11161,11407,6278,8323,9791,9432,8618,11218,11493,9534,7972,7973,10565,10559,10327,10238,6354,11240,7751,11405,3071,3073,6689,7651,7167,7654,4520,7077,8580,9543,6197,9873,2520,11331,10941,10686,7166,8585,9874,7250,7165,9875,8584,11354,9719,8212,11149,6354,4464,3070,7662,9876,9877,3073,8577,8199,3071,9878,10045,9601,6689,8577,7168,9367,7169,4791,7164,8662,7654,7297,6774,1730,4486,8580,7173,7298) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC