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,3169,3532,1230,508,842,2302,7391,1461,4061,6631,7493,7437,7389,778,1732,7467,4996,4999,5872,6619,6275,4991,4991,6586,6715,6715,6715,3555,3555,3555,3555,3555,6295,6295,6295,3105,6402,6402,6402,6548,6400,6400,6400,6400,6400,2005,4301,4299,4305,4302,4287,4291,4294,4296,4300,4293,7963,4289,4304,3515,7697,7694,7695,7696,1704,7608,7610,6548,5691,7695,3442,6303,7677,7168,7167,7170,7165,7163,7173,1779,6286,7164,7174,7169,7172,7693,7166,7171,4463,4470,4464,4486,4473,2824,2780,2785,2795,2783,2778,2779,2781,2782,2784,2789,2787,2794,2791,2802,2801,2806,2805,2786,2808,2811,2812,2799,2815,2816,2817,2818,2820,6489,6443,2821,2822,2823,2826,2827,2828,6442,2825,4432,6667,1624,6593,7304,5331,6367,1653,6131,6439,4209,4355,3904,6863,585,8195,8171,6691,2021,8143,6484,4860,1268,6691,3941,778,2294,1776,5927,4996,4568,1774,7270,7217,7153,7374,4432,6584,6664,7285,322,7277,3455,5020,7842,1325,3162,7834,7261,7287,7287,7287,7287,7287,7287,7287,7287,8050,6270,6954,2029,1645,8063,6718,7834,698,7836,6349,6365,217,6620,7208,8938,7493,7563,7563,9027,2520,8782,7654,8358,6980,9949,8864,6774,6715,6715,10208,10208,9,9,8299,4996,1953,8830,1624,7837,10891,9866,8047,5066,5056,10717,5064,5053) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC