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,4320,5322,2946,5995,1370,3414,6622,6266,5380,7125,1056,4405,2113,6594,6364,1277,1085,6567,2168,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,5924,6986,6710,1433,1537,1917,7100,6632,104,254,1089,1215,4796,2337,501,7113,4861,7102,4762,1349,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,6774,6733,2029,6547,223,6795,6562,6575,1016,7110,7125,7087,7086,7088,7117,7123,7101,7116,7124,7079,7153,7069,7121,7258,7249,7106,7276,7074,7096,6712,7252,7247,7253,7084,7278,7272,7291,7096,7247,7275,7091,933,3302,7840,7878,7241,8056,5305,8070,7879,7937,7254,3860,7279,8055,7147,7289,7245,3698,7238,6740,7943,7913,7238,7097,7572,2399,7280,7263,7992,6559,8386,7270,3550,906,7932,3380,8670,6832,8471,8408,8087,714,8770,8053,8681,8736,7106,8698,8045,5098,6239,5435,6819,1616,2024,3384,8063,8473,3385,4555,8439,9578,7654,8402,7837,1266,7834,7815,7835,6354,8547,3070,7579,4405,3071,1371,1771,1766,6648,3531,3076,8627,186,8659,1461,6947,6103,7836,5763,2546,1016,3809,8583,3908,8584,4659,7870,8793,8716,7816,3536,4227,104,1906,3346,2467,8586,7189,5385,1887,8825,4339,6824,7167,7580,7170,7993,7165,1771,1765,1769,1768,8578,4931,8437,7166,8627,5371,9322,9757,9014,3402,5419,223,924,8885,2253,2253,6984,1666,9513,9513,7547,7547,8659,8017,9823,9823,6642,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,6176,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,5419,9926,6819,4320,4900,5142,6845,8793,5995,1982,4535,6713,3625,7873,7131,867,186,6103,2749,8290,2171,7576,6807,8839,2594,8900,7920,5719,8089,1215,840,9616,2555,990,7576,4769,2998,9603,8543,2328,8995,7871,6117,1167,2261,9386,9936,10203,10204,916,10186,4979,7802,7801,8358,223,7826,9595,9596,9597,9599,9598,8730,8432,8816,8780,9720,8826,9215,9722,9721,9012,8815,3913,5484,5385,8822,8432,924,5647,3327,2554,10537,924,840,961,10961,9715,11101,2989,10825,8845,8617,8142) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC