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,6593,4923,4769,6098,2474,5371,5998,6362,675,1402,3913,2261,4405,6811,435,4419,217,4784,3595,6667,1359,1811,6003,2736,6003,3327,4639,2417,228,6821,6792,233,452,6275,7986,3059,3059,3059,5535,1988,3574,6648,6383,3967,6984,6947,7032,7033,1153,1983,4923,1380,1296,6316,5719,2889,4362,587,2399,6583,7641,6726,7158,5769,8230,8109,1070,6366,3302,1988,5719,5719,3449,6428,6428,3522,8352,8352,7976,7976,7918,1526,6702,4694,9030,6122,7874,834,5961,2503,6428,2503,2503,6428,970,4639,8358,9258,6074,5994,1586,6644,6962,6110,6383,6175,5887,5887,314,6701,6445,7082,7291,7647,7253,7252,8407,358,6177,1402,1740,2006,217,2520,2573,6971,1248,6726,1398,1453,6155,501,7097,4860,7119,4218,6658,7123,6135,6190,4769,2029,3772,6104,6642,3725,2389,7158,7300,6646,7032,5402,6611,6611,6239,6239,6239,6239,5882,6984,2122,4154,7271,2849,947,7262,7262,1586,7271,7271,7268,7674,7261,7261,8763,9828,9828,8296,2594,8296,9342,186,8349,9198,2925,9198,2925,8780,8816,1993,6367,8520,6548,6715,924,8388,5717,2399,4769,6621,104,1142,240,8970,6700,6631,9215,840,6006,9229,5484,1591,6264,2644,7144,8821,5052,7871,6774,5371,217,9390,8833,9281,3327,5770,2253,8515,7838,2029,9468,9027,9322,2117,1371,6131,9162,9513,2006,7861,4435,9538,2005,2085,1052,4395,7923,7976,1242,2989,9480,7992,6642,9524,9479,6103,6004,906,9603,3428,9629,317,754,9306,6691,4079,8685,8815,8814,8826,7576,9704,3598,156,1153,9678,8659,9559,9546,9760,1912,3236,6905,4913,7599,9390,9480,4154,9754,6102,2342,8508,2467,9763,9770,9783,120,6977,9782,6602,9014,7640,9344,4563,6652,9762,6623,8352,9812,2843,9830,8685,6841,8292,8544,9006,9879,9865,9866,207,9872,9918,4216,5419,9926,6819,4320,4900) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC