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,223,6190,4178,5068,233,2706,4349,1371,1257,5995,4985,446,508,1152,6632,4185,4349,3059,6599,6130,2576,6189,2749,6158,52,56,6780,2849,6595,5904,3728,5906,6619,4920,3070,3073,5782,5419,5380,1537,3071,2399,5872,6544,2894,2576,3029,186,176,6714,6710,5887,1379,6383,7019,446,446,6710,1461,6809,5927,5812,2799,4136,924,1520,2705,1345,4598,3913,5516,5732,6557,4411,5322,6255,5331,320,5988,4046,4199,4452,3201,520,4574,585,4432,3933,3440,4987,5020,6863,4233,2025,4805,6553,1490,6554,5647,6552,4337,5693,6880,6243,5573,2703,2397,4918,2324,6556,4209,7350,8435,2546,8463,6968,368,7985,7986,535,8832,8782,4037,6869,4798,7592,8917,8034,8240,8948,2913,7599,7521,7485,2261,3201,3888,3895,3892,3885,3891,3889,8272,3883,5609,6493,9300,8877,8274,7294,8839,9072,2737,1173,6174,6905,9437,1487,9438,6650,4121,8257,9439,9373,9459,6100,5,4708,3990,450,539,7501,7491,1769,1767,5576,6940,1098,6970,6967,3216,6966,1351,6394,1600,834,943,6965,6883,2331,467,1092,834,4900,4405,6875,5371,446,1766,1145,2261,1765,5995,6845,1769,4886,1520,5647,6552,7304,7019,7158,2029,906,6689,4144,3728,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,1826,650,6565,7147,1085,1086,3850,358,5915,7160,7240,7548,6589,6130,4597,2117,2628,975,2555,3525,7869,8223,734,5419,3760,8095,8094,8488,6740,7034,396,743,7594,5602,8587,7783,6712,7910,2071,2033,7307,7307,7819,8356,6394,7238,8220,8220,6390,2989,5380,223,1029,5576,7238,7304,6364,2869,6740,961,4294,5297,4395,4293,7593,1272,2605,1461,2706,5386,243,7179,7599,1371,7022,1351,7761,1095,4432,7840,1165,7984,6809,1349,4386,7176,8091,4985,4944,8135,7920,4945,4941,4940,4943,4942,4939,675,8358,665,8151,7239,7900,1126,8547,6600,217,8514,501,7241,7187,6953,7261,6570,6644,6104,8825,7665,8783,4834,8626,6595,8142,8488,7910,3029,8781,8305,6499,6204,3549,7636,8019,5121,7994,8638,812,5334,9007,8055,6780,1645,1345,8047,8019,8780,7751,8816,8955,1073,6986,7224,6710,7932,9308,9343,8842,9647,9009,8620,7640,9465,9258,5678,2467,8681,9546,9558,9577,9900,6113,9945,9386,10046,9959,10146,10240,9601,10353,10346,10349,10467,10002,9257,258,8269,7659,9277,10060,10892,10814,2399,8471,8092,7900,7283,2913,8955,2761,4765,11272,11271,10287,7874,8033,11333,10715,6544,1425,6845,6633,8142,4788,6588,2672,5647,3302,6618,7962,7962,7962,7962,1738,8833,8684,8842,3216,9012,7021,1402,3883,4597,7656,7657,7123,7097,6869,7675,7658,7655,7121,7101,2522,2117,6947,6743,7286,8071,8041,7116,7287,8067,8197,3892,5602,6604,6745,7279,8210,8298,8040,8227,7971,7226,8391,1462,8410,8462,7745,7741,7742,8053,8047,8022,7093,7910,8580,6648,8547,397,8685,6272,5184,8391,8055,7903,6596,4282,7654,8290,6259,3029,223,5148,2706,5996,2992,3860,4769,6188,1462,1453,6813,6588,7130,358,6001,7304,6856,1402,6812,5909,4801,6140,6122,7246,7099,5915,8280,8473,2473,7833,7232,7232,7223,7297,7297,7987,9030,8547,7546,1145,1250,7020,6810,947,4558,964,6778,783,1089,6561,7496,6235,7409,7389,7451,6810,4558,964,8436,6561,7516,7496,3066,8111,7127,6810,1993,7232,2799,1016,5956,5763,6631,3913,5956,5576,2869,1351,834,2009,2799,7178,4936,665,4945,748,958,6710,3989,1953,6593,1038,6779,6103,6947,3550,4131,6804,6842,6986,2261,6858,6863,6691,5142,6315,5995,6981,1461,7126,5046,7019,6548,7005,7214,7036,228,7138,6890,6632,6693,3702,7156,7221,7304,7050,6633,7143,7354,6104,3561,739,1521,7758,7760,7582,7718,7614,7759,7596,7709,6856,7830,7795,7869,7359,7883,7804,7871,7880,3625,7896,3609,7875,7751,7897,7995,7992,8031,361,714,8109,8032,7991,8183,8089,7839,8096,8102,6792,7559,8146,8222,8300,7938,8185,7920,8150,8293,8390,8230,8103,8299,1345,6642,8483,215,8302,8226,8548,2473,2467,8306,8526,8305,8358,8554,8611,6076,1815,8561,8535,8547,8514,8615,8629,8687,8659,8614,8479,8688,8802,8801,8632,8759,8744,8776,1920,8829,8807,8809,8902,8888,8901,8793,8999,8918,8911,9030,8841,8846,8900,8916,8925,8923,8781,2005,7912,4716,8686,9153,6715,1462,9086,9195,9220,1296,9296,9308,9198,3823,4671,9322,9324,9202,9200,9363,9348,9289,9291,9454,9420,9419,9258,9480,9453,9402,9372,9614,9335,9637,9376,9680,1380,8108,3337,9524,9552,9751,9763,5784,7849,9479,9810,9812,9674,186,9616,5956,9543,9062,9386,9829,9934,9879,9925,9668,9951,9904,9916,9482,9931,10041,10114,9913,9990,10142,9941,10042,10125,10149,10063,10128,10126,10115,10174,10020,10188,10245,10246,10236,10131,10248,10229,10208,10227,10211,10282,10148,10243,10244,10212,10065,10305,10319,10265,10279,9936,10269,10268,10338,10342,9603,10293,10436,10466,10290,10505,2635,10438,10491,10375,10488,10535,10526,10485,10127,10548,10528,10527,10569,10273,10627,10676,10631,5769,10339,10681,6658,10731,10760,1979,10775,10649,10841,3327,10294,10721,10698,10826,10839,10955,10940,10895,10687,10932,10766,10938,10802,11024,10992,10872,10987,10416,10894,10402,9925,2467,1462,4769,7917,6967,7898,7898,7898,7898,5947,5947,1145,6632,7580,6023,2677,7760,388,4563,7815,6986,2776,7599,272,6642,7605,637,7751,947,6871,6315,3803,7759,7972,7938,7354,4519,4558,7973,7837,1234,7834,7835,3189,5143,7836,5142,5251,8089,3066,8140,5936,8150,8111,5094,7920,4731,6713,8215,6691,8222,8193,5431,5536,8304,6810,7016,5817,1349,7005,2451,5947,4325,8390,7642,7105,3026,8281,8358,6732,8547,7246,8514,320,6693,8305,3913,8548,1738,5763,6354,8816,6595,5334,8802,8213,6726,4652,665,8730,8839,6778,8910,4730,8885,7903,8629,8220,8932,4936,9049,3542,4944,1886,36,4945,4941,7126,4940,4943,1521,4942,3775,4460,4939,4938,3449,1176,9300,8478,5841,180,1177,2657,9466,4950,3080,1042,7772,510,7770,7771,511,512,7637,7592,7755,7756,7927,8509,9880,8999,7019,8222,8793,9195,9925,9552,177,178,179,10229,10292,10056,9461,10063,10227,9769,10528,10526,10548,10543,9406,10358,5756,6659,9533,9675,9879,10964,10836,9383,4834,9867,10232,10278,10938,254,9220,8904,11121,10626,9677,7928,8688,9196,8547,9636,11171,10397,10315,11219,6857,11439,11361,11324,11455,10748,9929,11397,10476,10149,10784,11396,7581,6117,9347,6731,9648,4536,2873,11374,6730,4329,6692,1755,6175,6700,1462,3169,958,3646,6967,6383,2253,6366,2913,7149,5421,6642,5376,6644,2261,5046,311,7872,3428,6548,7605,1998,6130,6104,5484,6845,6809,4412,7022,2490,8178,665,7871,7994,7982,1116,6364,6979,7981,2761,4079,4405,8220,7992,344,6645,2032,7535,447,4178,1215,1257,5995,8520,6366,6804,4639,4405,7897,7903,7776,5838,1270,8093,2006,7775,2302,5371,2029,8296,5912,8390,7840,7912,6365,6843,6726,7058,4395,8109,5912,3561,3029,8280,6766,7160,4320,4535,4535,7833,7833,6971,7833,6715,6715,7388,7388,4500,4500,8863,9030,9030,7833,2729,8947,8947,3327,3327,3327,3338,9830,9830,9830,1771,1767,1769,4199,4659,3115,3719,507,8705,507,8704,8174,8436,510,6810,1257,4046,4049,4050,6705,215,4128,2632,501,3241,5799,5070,3936,3964,3989,4061,3100,4656,1461,6743,396,3830,4527,4834,1057,3644,2639,2261,6645,4131,6793,6595,6214,3874,6796,323,5996,7022,1699,5362,1152,7286,7268,6212,1718,6216,6221,3761,7641,6218,6117,2687,6104,1181,6443,5142,4860,6607,6385,1770,1771,1765,1768,1769,1766,8258,5817,3625,3884,766,4109,5576,955,6845,3728,1568,6635,4126,3415,1055,1647,1727,2299,4689,961,3850,4424,6588,1826,1532,734,2398,1371,6215,3896,186,665,1461,5742,223,7635,947,4320,8816,8933,2261,6740,7238,7840,8220,7879,8094,7878,8617,7634,4109,8358,8183,8629,5799,3066,1298,4648,5739,8745,8744,30,8146,8514,5070,1439,6842,8488,8095,8826,2632,8834,7920,8816,8616,7781,2766,972,8089,4082,5373,6713,5142,1521,3542,3715,7920,3625,3413,8852,7550,8888,1349,4005,6200,8886,1371,6103,4395,1738,2594,3850,8628,5421,6843,1126,8109,8935,5484,1998,7304,5996,272,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,8826,8730,8814,9104,3598,9060,9319,7295,2520,8815,6700,6700,8949,6631,7273,8922,8922,4598,8326,7270,7270,7374,7374,7374,6656,4121,4121,8154,7639,1746,1557,3073,6688,3071,8824,7670,6138,6138,778,778,1653,9189,6366,2594,5885,6010,2992,9217,9258,6523,4860,7878,9453,7897,8681,6366,7548,3913,7548,3913,4860,7037,9299,9195,5421,6621,8685,6726,4769,8668,8793,8668,8793,7910,7205,7761,8222,7761,8222,7130,3989,7130,3989,7130,3989,7160,3850,5947,1738,7605,6656,4320,5362,8150,9425,8531,8674,6144,7599,3358,6971,8345,6997,650,9602,455,6402,6484,6613,7725,6599,6367,6004,7708,9386,7105,9359,9986,6367,7646,7217,1785,9618,10060,7251,7089,7743,7505,7723,8780,8816,1993,6367,8520,6548,6715,924,8388,5717,2399,4769,6621,104,1142,240,8970,6700,6631,9215,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,4216,5419,9926,6819,4320,4900,1462,1462,8970,1270,8970,1270,8970,1270,1270,1270,1270,1270,1270,1270,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,9616,2555,990,7576,4769,2998,9603,8543,2328,8995,7871,6117,1167,2261,9386,9936,10203,10204,916,10186,4216,4979,7388,9853,9853,9853,9853,9853,8477,1085,508,1371,6957,5956,582,582,582,582,176,1769,1769,6548,1662,1662,3598,8372,6139,1885,6195,6963,10037,9556,2913,177,8871,4005,178,5362,179,971,9661,2329,1906,752,2709,1163,9897,4710,5460,2889,5460,4005,9875,8923,9878,9956,9877,9873,9876,9874,7362,41,9552,8829,9925,5551,7905,3402,7634,3059,1520,8617,8851,4109,4986,567,10116,9808,10048,10245,10283,9420,9831,10128,9780,9668,9913,10273,9602,10127,10284,9456,10265,10173,8948,7833,7903,7143,10233,10246,8953,10302,10531,3457,5516,3523,6867,6874,8193,10554,4535,1095,7773,4395,5996,3428,4395,2932,4209,4079,8902,9630,8092,526,546,4796,4769,5995,4860,9761,9746,1439,9785,10002,9808,7920,9750,608,7839,9668,3941,9925,9638,9220,10173,10165,10149,6632,10243,10115,10135,10245,10233,10229,10244,9993,10042,107,10148,10188,10243,10246,10284,9406,5647,9453,10266,5419,10440,1461,10080,10258,10380,665,10283,10439,10141,1215,10212,10268,3913,10314,10375,3989,4861,5148,9052,5799,1257,10062,10227,3241,2706,8893,6842,5070,9602,8514,9420,4234,2632,766,10787,4861,4901,2894,2594,8517,10879,10894,501,396,10128,10895,10315,6842,10375,10306,9453,11028,10020,9780,10569,7614,7615,7550,6713,8837,4082,7017,8888,11237,9454,8925,11488,2706,10856,11349,5373,252,3542,1521,9220,10375,11593,9904,5739,9374,9615,4455,4739,10857,4455,4739,10857,1490,640,4411,2023,9987,779,11644,10798,10300,8049,7906,10342,10530,11595,11678,11594,8548,9850,9348,6557,6961,739,11492,1127,10131,7483,7483,3510,7070,7078,7283,6386,7906,8157,3860,7068,8397,2992,8415,1537,7304,2951,7897,7100,8743,7939,7088,5996,8080,8422,7252,7644,7830,5647,7588,252,2736,1533,1210,1210,466,8454,464,8287,8909,8585,9084,8682,7912,4834,4986,3165,8665,4405,801,8816,8815,7024,4834,5995,7304,446,446,8520,4259,5419,8220,7635,9209,8142,8512,924,8050,28,28,7089,8211,7666,8055,8055,7106,389,8460,7261,8084,7266,7075,7241,7246,7713,7151,7665,7100,8395,7094,8065,7273,7096,4178,7109,7268,7268,7080,7654,7654,8034,7076,8438,9620,9611,9745,8401,9622,9746,9621,9748,9744,9719,9259,9675,9980,8358,5484,5602,5995,9258,8047,6539,681,10024,8450,9874,9956,9877,5053,9957,9876,3380,9148,7150,8450,7266,5995,4146,5419,1768,9820,9933,9933,3874,3874,5064,5064,5056,10272,4146,2253,2253,8449,8449,10024,9999,9878,9844,9747,8071,5376,5376,4512,7238,11225,11225,7110,4349,10022,1770,10212,3165,11452,9574,8087,2658,4395,3863,8524,11438,9780,9386,9872,145,169,10247,5602,2117,10229,3302,223,801,6218,5371,1345,4450,10234,933,10280,3878,4405,2915,4801,152,10346,5305,2261,9985,10358,8816,4178,10440,6712,10293,4178,8780,5995,1215,1371,4437,6740,7238,8220,394,2033,4450,2261,10836,151,10088,10087,10090,8814,8826,10089,7592,9931,924,1371,9888,4320,5322,5385,1052,6325,2989,10086,2554,9257,9195,5484,924,5647,3327,2554,10537,924,961,10961,9715,11101,2989,4216,10825,8845,8617,8142,6642,11101,1257,10988,9386,9872,10974,11101,10339,10825,4305,1767,1769,1768,1766,4520,8244,10325,10323,10328,9951,10326,10324,10331,10158,10330,10329,10333,11007,10546,11050,10560,10555,10327,10159,10137,10138,10218,10563,8873,8700,10728,10099,9894,10198,9435,10322,9436,10140,6359,10330,9434,11138,10136,8649,10202,8872,10331,10323,11049,10324,10329,10333,10326,10217,11137,11324,510,8824,7058,7752,10731,10305,7753,8088,4320,9951,11602,11601,7374,11320,11588,10305,11611,11723,11784,10646,11321,10752,4512,7751,7972,8681,7973,10647,10364,10822,10920,5380,1371,7304,9030,4302,6742,7473,1988,6242,4317,3074,6174,6814,7964,8686,9351,3337,3823,1462,8732,2417,1250,7473,10932,10916,9601,6953,8780,4923,3327,11216,4769,10874,10731,11379,10579,6715,5647,9685,9693,2913,9692,9713,10116,9386,10056,9993,1215,10239,8358,10247,10238,10212,4121,1988,990,7135,8780,7134,10229,952,10836,10466,2261,10149,4778,4512,11022,10733,11646,501,28,9031,5609,10818,11644,9985,7610,11792,10909) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC