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,7388,840,840,840,8477,9900,6971,9879,9879,8781,9949,8877,8878,9755,8200,8880,8880,7898,9537,9885,7304,9890,1770,1770,10526,10526,8880,6845,6845,3029,6845,7297,6845,7297,7897,8498,7897,8498,10615,10614,10615,10614,8882,8371,8882,8371,10898,10579,9797,10858,10346,11215,10346,11215,6216,8041,8034,10264,8867,8047,8048,10008,9719,389,8476,10185,10404,10510,8400,10604,10597,10601,10596,9794,9076,8419,9059,9082,9662,8404,10011,10029,9247,10767,7282,8227,8472,8471,8475,9367,7388,10526,7535,10836,5996,526,2056,391,7270,3860,4199,3896,1458,7300,6768,7300,6962,7286,4544,4860,7899,545,550,548,539,4684,3554,3554,1398,7175,7032,1662,549,6477,525,2706,778,551,864,1366,8356,8530,546,8880,979,6394,6842,8212,7472,9030,578,547,2847,3337,1777,7178,8438,4500,4500,9076,9778,9494,9494,9791,9745,9858,8575,8575,6648,9488,9879,6583,6583,8434,8434,9547,9547,10638,6579,8063,8833,10731,8428,9785,6400,10695,4500,1783,7273,7291,10185,10510,7289,9138,8794,7543,7400,7419,7472,7541,8868,7491,7563,7390,7449,9025,7290,11201,11477,11479,11480,11476,1624,820,6801,10677,10817,6803,10985,2538,11053,11215,10707,11380,3105,3108,7383,7409,7408,7406) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC