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,7262,1886,8389,324,7209,4659,1327,1084,4362,8434,7971,8541,8408,6658,7975,7928,8290,1887,8435,8706,8737,8742,8363,7143,2775,7961,5244,6850,3440,7747,8628,8141,3989,7261,215,215,7580,7751,7881,7973,7972,7293,8088,2389,3559,507,7992,7300,7085,8206,7753,7106,7660,7656,7238,8220,8222,5995,1257,4178,4947,446,1215,7977,8290,8434,8435,2520,8389,8174,6642,8175,8306,8628,8703,8628,8703,4598,4599,4600,7928,8737,7928,8737,8737,8793,8681,8761,8698,6958,508,4801,2092,7852,2117,5602,3531,8706,7998,7999,7137,7551,9037,9030,9038,2555,8739,8850,8822,1662,4218,8613,8781,9134,9141,9142,9139,7659,1511,931,9090,186,8721,8053,2712,7117,8742,8231,9300,9079,8019,1145,9349,1145,8213,8044,7143,8547,7903,6642,8952,8358,8514,2029,8948,6740,7641,8220,7238,8912,3850,9030,6849,6845,9300,6104,7019,8780,446,2658,9212,8520,9366,4178,9386,4178,7833,9366,186,8306,5995,9159,8816,8169,9936,10056,10126,9079,10240,2925,2467,228,8916,7898,8836,6548,778,6004,9300,6715,9296,1927,6151,8840,8214,6700,8699,6286,1782,1774,1782,1774,1782,1774,6611,7893,842,4405,1927,4706,4224,120,9970,6584,10001,28,1768,10043,10043,10043,10043,10043,7671,9189,9564,8881,8881,8881,8460,7671,9767,3884,8541,8665,8446,8772,9874,8412,8052,9547,10024,10024,9502,10272,9401,9813,10275,7241,3499,6718,6691,3455,5927,3898,6751,7705,7703,6715,3336,3702,7048,6587,3337,3337,6584,6584,6367,587,587,525,525,6604,6604,6612,8583,7870,8618,6503,8586,7546,1770,673,8520,2605,9030,9030,1402,1402,9084,8947,840,8826,8730,8814,9104,3598,9060,9319,7295,2520,8815,6700,6700,8949,6631,7273,4598,8326,7270,7270,7374,7374,7374,6656,4121,4121,8154,7639,1746,1557,3073,6688,3071,8824,7670,6138,6138,778,778,1653,1779,7654,7155,7083,7083,8793,8544,8193,6381,7307,7124,323,7270,6004,6740,7238,8220,2041,6715,7976,7076,8738,6569,182,8541,6843,3647,2331,6700,659,9338,9612,186,6388,8434,8349,5719,8130,8541,8628,8678,8761,7905,8542,6787,8389,9090,1886,8290,8220,8435,9547,8435,9547,8435,9547,6105,9727,7833,8435,8441,8290,9017,8628,7910,9072,9073,9073,5207,9090,8780,8780,9215,8615,8615,8991,9389,9389,8706,8706,585,4805,4805,3474,3474,8534,8534,6188,6188,9545,9545,6104,9767,9258,9108,9931,9959,3558,637,9319,9319,10056,10079,8927,4985,4985,9993,9993,10176,10212,311,9464,4639,9838,9838,223,223,7823,7823,107,10523,10548,10548,10608,10608,6642,6642,8547,10702,10626,2989,10667,10667,10836,10814,10814,10938,10512,10738,10738,9757,9757,10972,10976,10976,11027,10977,10977,11121,9555,10228,10228,11089,10904,1461,11219,11172,11172,10039,10355,10355,11272,11272,1439,10748,10748,11310,11310,11324,11130,5321,2160,2160,7583,7583,11455,1381,1381,11353,10937,11496,11604,7904,11554,9777,11609,11690,11741,10397,8560,6381,271,539,2729,7304,2729,9438,7903,9300,9480,3647,1215,8306,9425,4598,8874,4598,8241,8244,8706,9182,9349,8337,7928,6768,9417,8245,9898,7,9017,9432,9632,9296,10056,9296,9096,1165,222,3883,10292,810,10259,810,6359,9864,10337,6272,10337,10072,9959,3358,6348,10640,8144,4301,10738,10667,10976,7833,9777,10814,11037,11130,11121,10951,272,10937,10954,9880,11323,6354,10007,2530,104,374,8490,11496,9277,2117,11272,11439,11690,11721,10533,1385,1402,11734,10269,10836,7548,233,182,7599,2849,1300,7261,4199,7118,2261,3702,4199,8623,8767,8280,8280,4405,375,382,389,7298,7150,7297,8236,9132,9132,2474,3247,7106,3874,4146,4146,3874,3874,3874,3874,9770,7903,7833,7143,7019,8793,7761,7761,7761,7761,2169,6631,9386,9461,9386,9461,9915,9915,228,10056,7160,3860,2992,8836,7238,8933,6740,7238,8154,8154,4121,6876,10086,10086,6335,6335,6335,6335,6335,8628,6740,5175,2590,5322,566,6130,2677,4452,2615,3908,215,6255,1370,6633,7113,5188,6119,7095,7117,6175,6310,6103,409,524,7295,7082,7238,7023,5995,979,5066,2261,2520,2522,4614,6701,1746,5331,6740,2605,5386,1016,6957,6702,6957,867,7646,7118,7649,1411,3609,3698,810,7076,7081,7116,5763,7106,7109,7087,4390,7153,7114,1165,7653,7599,5297,1685,7122,6272,1266,6623,8080,8042,7291,7269,7285,7101,6709,7096,3550,7808,5332,3754,7932,8049,7643,8281,8077,7245,7931,7906,8444,7967,7605,8541,8552,8304,8480,7658,8088,8435,7903,8542,2389,8283,7154,8721,6870,7284,8706,8389,8266,5371,8628,7068,6359,6890,8290,7262,7124,7294,7289,6656,2521,3644,3359,7110,8207,7661,7675,6332,6855,3725,7089,7276,7248,3014,427,8306,7282,7084,7249,7019,7761,8222,8793,7280,9195,4659,735,7283,6364,7094,9338,7247,1998,4185,7254,7293,7671,8047,8284,8064,8079,8052,8053,8063,6381,9552,9137,8578,9149,8434,3380,6263,1685,1266,8459,8449,8580,8824,8972,4555,180,7904,9743,9793,1257,7588,7721,9614,9800,9888,9868,8166,9959,7239,8581,9931,9933,9030,9386,8725,4639,9936,9950,9349,223,10040,9951,9973,8566,10026,10088,9547,10087,7704,9879,9989,9536,10086,9534,10239,8202,10089,10090,10265,10008,10260,10257,10292,10247,1645,10237,10044,9892,8087,9785,10362,10321,10061,10272,9824,5053,5056,5052,5056,10320,10520,10526,6656,10574,10575,10574,10212,10297,10505,10650,7816,10229,6977,10211,10176,8780,5064,10222,10811,7910,10814,4765,4535,10302,10546,10913,10546,10965,10821,10938,10914,10827,10131,11027,7815,10512,10011,11072,10113,11121,10114,6898,7206,6240,10881,10519,10839,10840,9141,834,9581,8206,9997,9951,7767,10061,5564,8639,10029,4659,324,8772,9998,9989,9763,9579,8229,8063,8928,8628,8050,7112,8792,8431,8510,4544,1828,1726,9968,9959,8650,10034,8364,8287,10379,10402,10693,10694,10590,10592,223,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,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,9865,11017,8971,9233,9555,8816,3885,3760,9321,4862,8247,8730,3327,6845,9363,6971,8901,8520,9402,9552,9951,947,9600,7233,8726,8615,4337,4233,4209,3904,2025,9373,8193,5516,249,9052,4234,1215,10212,9879,10526,9453,1439,6104,10739,10765,162,8995,6809,9614,9234,8888,10127,10870,4665,5013,3989,10549,10634,10636,8834,11141,8010,10355,11020,11028,10964,11122,11220,8681,2474,6740,7238,8220,7833,1982,1982,6587,4395,9030,7143,1988,1988,1988,8948,5770,1662,9616,8832,9189,9437,9217,9438,9349,8706,7928,7928,7928,7928,7928,9838,9864,10259,10937,4405,9116,239,2490,8095,6119,10955,2063,10285,10092,10093,4144,8628,10165,10133,10786,10552,10287,9547,10913,10286,8952,130,8995,2469,144,8008,2653,3304,4722,10702,2671,9349,10626,10830,3165,2467,6325,8870,8844,2454,9828,10805,2753,3908,4659,10257,9767,8995,10165,2490,3590,10865,8933,10836,3465,10241,2334,4164,5839,3646,7234,9983,9864,1185,3282,10715,6780,3549,4423,11271,2253,8706,311,11435,10260,11453,7785,7586,11134,11383,2628,8304,11302,3415,10714,8169,9895,1232,665,9538,11669,8955,1052,11609,7824,2331,1245,4964,6221,4178,8324,6740,2021,7238,6270,1557,1380,8220,8247,5763,7300,217,6508,8345,8490,6512,6510,6103,6199,6533,2467,6373,6768,8244,2989,7923,1303,6831,2374,735,9001,8151,6880,9243,6855,7594,510,9505,8869,9921,1052,9450,5839,9900,10228,4405,452,4800,10305,8135,2164,1557,2164,9931,11134,8435,8257,10086,11352,9871,8262,11437,5997,1049,10741,11101,4362,8377,11519,4720,6806,8489,10526,10649,10758,9349,9950,8541,8765,2009,7910,10937,8973,11134,7144,8171,11120,9031,9838,9005,10500,7869,10702,186,9198,10314,8828,9951,6771,8816,11325,11283,11303,11289,10875,3523,11351,11409,8434,11296,11167,11238,11247,11448,4076,9864,11213,10751,10533,10535,5782,11301,11294,9078,9915,11121,11608,10056,10724,10951,1969,11742,5402,10531,11768,9972,2389,11497,9985,3254,11809,8745,11304,324,4659,10966,11051,11238,10302,10769,8767,10757,10617,11187,8773,10614,979,9049,9259,10854,10292,1662,10855,8577,8290,8628,9767,8782,7646,9508,6701,9072,10272,9441,10400,10834,10891,8202,7944,4607,7655,10399,11514,10625,11534,7655,11601,11602,1765,1770,6740,7238,8220,9457,7278,8052,9577,180,10349,11282,8207,28,11288,11063,3863,8737,10687,11739,2872,6102,11497,8302,1811,11346,6718,8686,9547,8434,10169,9865,11400,9972,6717,10707,6978,10290,1983,11457,10832,9929,11423,11134,10784,11454,9634,7719,10019,11679,2761,11315,7592,9767,3493,7554,7755,7756,7754,8509,7927,178,177,179,6117,3549,8305,6857,5334,11271,7581,6780,8543,9648,9347) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC