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,1250,2093,1324,176,2374,2749,4401,1271,1497,3425,4659,6103,6701,6488,6205,324,2171,1324,6342,6163,934,52,2182,4535,6348,4774,6210,4199,418,947,5331,6622,1439,3979,2027,6958,2729,5912,6972,1366,867,6806,6973,6974,737,3148,6890,6798,5822,5763,5986,6488,3425,6193,52,6240,3250,4659,2182,5314,7068,7097,2749,1016,6264,6975,5564,4683,4684,1210,6103,7154,6832,4535,324,7218,7149,2490,7823,5763,3908,7108,7081,7990,7893,2847,7880,3346,7993,7804,4339,2027,7715,7079,6264,7270,5912,7281,7285,7154,7906,7284,7941,8283,8081,7941,7286,6103,5245,8085,6205,6138,1016,6121,2897,324,5822,359,6796,6633,8610,6904,8141,6193,8141,7584,3425,8279,4559,8560,8063,8058,8639,8445,8046,7714,8575,8653,8438,8570,834,4900,4405,5371,446,1766,1145,2261,1765,5995,6845,1769,4886,1520,5647,6552,7304,7019,7158,2029,906,6689,4144,3728,840,217,7359,344,5915,600,6365,2706,3216,6940,319,6740,4947,319,2876,7837,6981,182,7879,7751,7834,215,1439,1257,7836,7835,7972,7974,2006,1038,7636,7919,6103,3059,233,4178,7605,4320,8250,7634,8222,4406,7833,7634,8304,1559,8343,961,8441,4338,7973,7374,7635,7846,8358,8611,4061,4566,228,4652,6986,7759,8629,4128,5046,4635,4656,3936,450,8730,1345,3100,10121,9936,10142,9321,6010,1453,931,1398,6986,666,5437,2182,4395,3493,6633,186,5142,7218,358,1402,5331,6713,6588,6712,5995,3549,6710,6709,6780,5334,6633,5995,2269,3904,6158,6785,5371,4395,4254,5743,4598,1311,4854,240,3213,3647,4022,2915,3306,1196,258,2660,6845,4028,6104,4087,5222,2700,2046,3501,6824,797,6560,955,1561,7009,3534,6979,4985,7212,1349,1474,4779,1381,3564,6337,6342,4834,7790,4230,1126,7846,1164,6261,4659,721,3392,1142,5093,2736,7861,1366,6732,2451,7023,5997,7780,7981,3979,1886,7821,1327,7712,6850,1047,867,2384,7005,1113,2590,1134,8224,8206,8358,1970,8706,2677,8706,5314,2677,7354,5314,4901,7354,8306,4652,1016,3287,8805,7829,8961,5790,6314,3425,2749,8551,2749,7982,8933,8963,8795,8934,4598,9116,7906,7038,9061,8442,836,8915,8829,8923,6679,8935,9215,9275,9212,9377,6713,9600,8804,9653,3159,8894,9213,9834,9278,5379,5544,9649,9800,8827,7830,9836,10003,9730,9831,9983,9900,10039,10349,8172,9603,10399,10289,9964,9959,10395,10396,10307,10246,10765,10306,7804,8144,9832,5210,9922,10368,10016,11402,10907,11385,2849,2085,9406,10543,11310,10674,10881,11116,9542,11551,10466,972,11606,8620,11658,11670,310,11266,10000,9647,11436,11443,11446,9046,1953,11371,9741,10512,9299,11187,6691,8305,6103,8290,8547,7994,8554,4597,176,7639,7213,8561,5765,3590,5623,955,3843,6687,3415,2639,6833,1829,6643,2117,8514,7157,7585,1645,4774,186,2063,2615,3896,6003,8220,2830,783,5995,7977,9402,5068,1153,9767,576,9464,9547,1770,8551,9936,6578,9754,8388,867,8388,867,6803,2635,8831,10086,10056,8142,1990,1990,4659,4659,4659,6740,1645,10478,9785,9649,9976,10836,9975,6740,10809,10482,867,10477,6836,10183) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC