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,2092,358,6175,217,1453,2145,7072,7124,7258,7292,2179,3389,7084,5947,466,4788,1303,3511,1215,156,1250,1498,6130,4767,5400,2029,2736,4558,1425,450,5995,3026,4791,1210,752,5729,1762,2743,5431,6490,6561,435,1398,5922,1461,4128,3936,916,5936,964,1497,3558,5251,5629,2054,6986,6710,1433,1537,1917,7100,6632,104,254,1089,1215,4796,2337,501,7113,4861,7102,4762,1349,4216,5322,7280,4199,714,4220,7054,6707,4519,4401,1371,7304,5371,7097,1145,2023,6264,7072,6104,5535,934,6365,609,4983,7938,4233,52,5430,6561,8306,3244,223,2677,4639,7238,6740,8590,8183,1439,7875,8615,7023,5373,7546,2986,5143,3014,3581,5484,1126,1645,3018,3941,4510,8783,322,2944,766,5912,2024,7027,6658,6658,7160,7160,7160,7160,6740,7838,7897,7374,3967,3967,8515,6270,8171,6780,6076,6901,8698,8100,8690,7835,374,8683,8554,8560,372,7047,8706,8305,6542,6076,7003,6539,8302,8302,8302,7105,8463,7124,8436,9865,11590,9037,8627,9434,8946,8944,9436,9383,9435,9867,10140,11242,11241,6484,10232,8649,10140,9665,8873,8872,10053,9113,9112,11677,4558,4121,10637,10644,11690,10983,11121,8585,6740,7238,11697,5942,8950,11181,11354,11037,4121,11182,11037,8111,8706,11183,7734,2488,5227,9692,9303,2071,9084,3874,4146,6354,3070,3073,3896,8946,6688,9665,10053,10544,9665,10053,10544,10975,11221,272) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC