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,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,9866,207,9872,9918,4216,5419,9926,6819,4320,4900,3863,5742,3334,1973,5717,2145,5733,6593,6814,3334,3338,7012,7238,3248,2069,1302,3402,3402,3402,1270,5770,5770,5806,5806,2643,2643,6815,2555,2384,2384,6865,6865,582,9324,582,6183,2635,6484,9866,4784,4510,5371,5484,9778,8491,6174,8296,2925,7634,4834,8142,8617,1974,1993,1974,1993,7840,7879,7840,7879,6728,587,6728,587,8683,1308,8683,1308,6770,9403,7048,7847,3926,450,2627,3949,2628,4178,8565,8831,4716,4716,3913,6869,3913,6869,3913,6869,576,5484,6843,7976,9951,9889,9889,9889,9342,10235,1380,8963,6367,8292,207,10248,10438,4607,3081,4607,3081,10010,10010,9902,10078,6613,10932,6693,8108,7861,8196,8196,6138,6138,7999,7998,6173,5548,5548,5548,10000,1787,7920,9857,587,587,587,9667,9667,4769,7503,8816,5435,6367,8436,10339,3165,9021,7380,7380,10478,7400,3334,5924,10664,10872,9024,9024,9024,8582,9840,10480,9633,8310,8897,7698,3254,842,8274,6520,3897,8272,3883,3884,3895,3892,3891,3888,3882,3896,3890,3887,11458,11459,10238,8585,9407,9920,7870,8586,8618,8682,7631,11722,11218,9084,7546,10565,2807,2806,6082,6272,9846,10036,6272,57,10279,923,3823,3385,10279,1616,3712,5063,10176,2342,10218,10379,6215,10438,9394,6538,6656,1296,9342,6373,10305,6512,10369,10631,10687,8710,7916,10436,4842,10676,8565,4227,7216,8115,6593,10678,10775,8292,10703,3954,10676,8191,6801,10678,10932,6804,10809,8524,10874,6728,10932,10984,10402,10987,10676,10984,8565,3823,10676,1296,6503,1979,11323,2005,8565,2342,5145,11444,11399,10579,4724,8765,10892,10673,10204,10212,5269,10819,11044,3327,10296,10687,10940,5269,6104,9866,10670,5839,4568,6276,9863,6300,8732,7048,4178,10818,11028,6367,10649,10892,1777,6793,4362,9386,11253,10212,9320,10505,11219,11195,10248,9871,6240,11169,11217,10687,11379,9420,10831,5269,10002,10893,4716,10282,11349,2009,9547,9547,8358,11438,2913,8292,7385,11261,10987,10731,7159,11497,2913,10987,3327,4769,3913,9949,7976,11216,10379,11216,10717,10840,8191,3890,7987,7808,11209,5297,8682,3896,11215,8255,11307,10646,9129,3358,8244,6688,11322,8897,10520,11049,7176,8874,11013,8618,11015,7632,11432,11414,11463,10932,10984,11204,11147,10326,11205,5635,11418,9524,9863,8963,3064,10940,10687,10339,317,4769,11325,10907,10483,7416,11261,1492,11307,11444,10758,5535,3066,1385,386,254,5053,446,397,1303,2122,2743,4558,1645,6152,6151,1520,6654,4355,800,5321,1770,5995,1768,1524,1766,5542,1769,1771,1970,6691,6718,6985,1662,737,5148,6175,7262,1767,6721,508,1771,1769,2706,7270,1133,1770,1257,5454,6204,6104,7209,272,4230,7107,7083,2023,6593,1685,1327,6689,7881,186,1073,1215,3071,6315,7671,1173,6586,5927,8088,7753,7881,6546,501,322,6858,810,979,3989,4796,5732,1173,6743,3719,3559,6315,8193,507,1351,3115,7771,3385,7213,1173,8688,4227,3881,7104,8111,7585,8436,8627,7238,8548,8220,8175,7637,8168,8687,8885,446,8440,8765,8834,512,8831,8900,8963,7837,9037,8951,1768,9136,800,8828,9136,8946,1257,8306,1215,3989,8578,9096,5995,9052,7301,7736,4130,9245,8250,9300,2122,9365,9278,9308,9382,8704,9455,8175,9439,2701,6778,7636,9308,9474,9615,1245,1532,9636,9602,8904,9623,9323,9196,8899,8946,9679,9648,8543,9347,9634,6857,9961,7581,6117,9930,9627,9195,9543,6646,10118,1108,10212,9554,6874,10149,10172,107,9867,8897,9760,10232,9665,9342,9049,9383,8728,10000,10272,10554,10342,8615,10523,9221,4337,8173,24,585,10053,9453,10476,10878,10375,10664,10893,10940,10870,11024,254,11028,10836,10292,4558,2811,30,11142,10671,8893,8132,11122,6595,11220,10672,3933,11105,6646,11021,8171,10784,6616,11302,11253,11402,11423,4437,10291,1080,4136,9929,5922,11361,7975,11142,9949,11263,3493,10258,11473,9455,10464,11548,10248,10730,314,11491,8762,11423,11550,10650,5923,9866,11399,11042,11283,11690,11404,11097,26,7159,11645,11739,11678,11328,11764,11701,11118,11721,5534,11644,9603,10798,10784,783,11215,11724,9513,11074,11816,10010,11123,10554,11824,7215,9541,11869,314,11267,11725,7854,10370,9649,9648,11751,9524,11870,2009,9257,10868,2913,5376,8520,4563,11437,2658,2989,8826,11485,11400,9391,2467,11672,11594,180,8222,11661,11497,11658,4923,11400,6131,10687,892,10687,1662,10462,8196,9889,11074,10339,1993,11101,3863,10687,11497,11216,10526,7385,9300,4985,1993,6740,11380,8220,10278,4639,10056,10228,11264,10940,8358,6367,11690,11366,223,9946,11662,11379,4395,8816,2473,1145,7174,3712,578,7238,10491,582,8388,582,8388,3327,3327,10687,10339,10687,10339,11400,8388,11101,11327,10472,4923,9524,1993,11101,10754,3327,11744,4769,7775,10687,8618,9084,8585,7870,7631,8584,8948,7808,10265,1685,5297,5386,6216,6497,8566,10433,8729,381,7024,8729,8584,8788,10056,10522,7721,8728,10520,4390,9909,8922,551,9767,10502,8584,7870,6198,9522,1266,9521,6042,9515,9517,550,10637,10794,10793,10639,10791,10646,10790,10519,10846,9084,10980,10545,8618,3066,11017,9624,3018,11052,8917,9651,6501,7608,10326,10970,10327,7300,10645,10607,10753,10329,10324,10562,11089,11218,7808,9084,10827,7610,10520,10521,10669,11101,11049,6354,10728,10336,9880,10642,10644,10641,7631,11321,9084,10328,6354,10752,11320,11050,11493,10637,11432,10141,10643,8842,5419,10827,7808,4320,6354,11017,8971,9233,9555,8816,4769,11497,10687,11101,10940,11410,11399,10687,11739,2872,6102,11497,8302,1811,11346,6718,8686,9547,8434,10169,8922,11400,9972,6717,10707,6978,10290,1983,8436,5435,3913,10526,1993,10940,10228,7849,6715,9258,9863,11400,11720,7903,11497,8110,11433,11329,7910,11497,10937,10687,11410,9393,9300,10579,11101,2749,5567,450,11497,10228,3863,10836,10477,9488) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC