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,4432,6175,5255,24,1250,2093,1324,176,2374,4401,1271,1497,3425,4659,6103,6701,6488,6205,324,2171,1324,6342,6163,934,52,6875,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,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,6599,840,6130,2576,6189,6158,52,56,6780,2849,6595,5904,3728,5906,5407,3702,4450,3581,240,5895,6394,5887,1270,5437,1520,3598,5380,254,5915,6138,5322,409,5763,2092,6638,6361,6190,2897,1084,179,1740,3492,3395,2171,452,2145,3863,6947,587,217,4566,6803,7044,7009,3595,6957,7208,186,6890,1645,1511,6561,7215,6624,176,5070,6812,5956,7159,5081,7579,4419,5897,5998,6003,6195,5956,6896,6587,6843,6638,6102,1242,6173,1591,5912,7046,6718,4971,6559,6843,6004,7160,5996,2992,7304,1537,2473,7548,7205,3860,6740,7238,3860,7840,8220,5435,4923,3531,2555,7918,5887,6394,7846,5567,7105,1665,4349,961,2093,7218,7149,4671,4923,2417,5782,6578,1726,6794,1296,2729,1153,1988,6962,4920,5853,1973,6844,317,1732,6003,1462,1380,4437,4437,6710,2867,8094,8095,5994,2009,6968,6194,7840,7840,7745,7742,450,6205,5997,2521,7923,4401,4401,5142,6845,8793,5995,1982,4535,6713,3625,7873,7131,867,186,6103,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,4216,4979,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,6875,1134,8224,8206,8358,1970,8706,2677,8706,5314,2677,7354,5314,4901,7354,8306,4652,1016,3287,8805,7829,8961,5790,6314,3425,8551,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,2783,2799,5454,7816,8714,2913,8485,2253,5564,6890,9103,2490,6622,2946,8689,9390,6001,9391,5839,7872,3074,314,6831,4800,6174,7206,3358,9258,391,452,10454,5827,10337,10741,10761,10649,5839,4923,9031,10226,11010,8305,2117,8547,2911,3165,6794,8831,372,8579,1537,7304,6841,314,8349,4769,8765,7122,7122,6691,6691,6691,5961,1230,7655,1327,9349,8110,1497,7761,3863,3863,9603,7135,6578,6578,9787,9787,5484,5484,5484,2986,2986,2946,9667,754,148,10229,6710,1461,1917,179,10278,9655,2761,4029,10566,10761,6953,3872,10786,961,10649,10346,6953,9855,10905,8358,10892,2342,1993,3913,8257,8257,2447,9685,9405,4827,2989,9557,8780,1487,10321,6170,9883,2986,1764,7299,6855,10093,6806,7587,10781,1308,6264,2079,2374,2071,7898,6499,1765,9411,1730,9555,7963,8665,7698,6496,1771,1767,2780,9213,1769,1768,1766,6746,6222,4512,8154,10098,4121,3896,3070,7693,6381,3073,9377,2520,6689,6688,8946,2780,8278,4701,2778,4287,9377,9592,2816,2787,2786,2802,2801,2783,2782,2818,6354,2820,8983,2812,4302,9799,7752,6193,8627,8088,9996,7753,8727,10053,8943,8727,8944,7881,9679,9037,9665,9822,9037,7696,7881,7610,9679,4305,4286,7694,4297,9905,7695,3442,4304,9909,9903,4300,4291,4287,4298,4293,4296,7963,4290,4289,8945,6688,9867,2791,2828,9867,2825,2785,6489,2823,2826,2824,6197,9632,10232,9631,9633,6201,8946,6198,6200,7608,1704,6199,6538,2822,2821,6534,6535,6537,6506,6501,10139,6532,6533,6536,8323,6214,6216,8278,9534,9536,8276,8275,10176,8003,7782,2815,735,9781,8589,8007,10044,397,10257,979,6443,9011,8667,3898,7636,9129,8566,10372,848,1368,10072,7580,9300,6740,3841,7238,10220,9300,324,4701,10056,7568,9383,9543,10552,10544,9072,8991,3877,7762,4,4520,10647,10612,10646,8946,10641,10642,8871,10260,6311,7024,1230,10531,3425,9669,9624,9131,9671,9670,9673,9672,7171,7172,7170,7174,7165,7173,7166,7164,8681,8698,6528,4146,8817,9888,10861,8,3874,6259,7677,10836,9300,4224,8888,9304,10914,10954,8432,10963,9338,10856,10857,7772,510,7771,7770,511,512,10818,7637,9473,9475,10298,10924,10067,10443,5995,4178,446,10212,9418,1257,10098,5459,814,9667,7903,11109,7143,11121,5995,173,7636,365,392,11263,1770,10314,11298,11328,9949,11380,10940,9977,6740,1589,222,10940,7238,10844,5134,10296,8306,223,7143,11349,6821,7837,8780,10734,2253,11329,7910,11497,10937,10687,11410,9393,9300,10579,11101,5567,450,11497,10228,3863,9865,10836,10477,9488,11051,11296,11101,11022,10056,11585,9349,10097,2417,2780,6443,11022,11296) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC