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,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,4405,452,4800,10305,8135,2164,1557,2164,9931,11134,8435,8257,10086,8922,11352,9871,8262,11437,5997,1049,10741,11101,4362,8377,11519,4720,6806,10041,10031,9963,10021,10060,9963,4405,9968,308,10072,9988,9978,10061,9941,10056,10125,10121,10125,10183,10182,10163,9652,6348,9917,9917,10220,9967,9918,8214,10261,10111,9307,10269,9967,10129,10267,10412,10113,10362,9701,10114,10312,10512,10313,6889,9835,10550,10538,10527,10547,8290,10553,10240,10003,10541,10182,10674,10667,10649,10650,10566,10723,9448,10656,10741,10668,9979,10814,7774,10820,10480,10785,8515,9790,10935,10910,10786,10934,10938,10679,10905,6809,10976,10679,10905,10976,10679,11026,11027,9465,10303,11026,10673,9872,11090,7602,8268,8571,11094,11089,5688,11103,9093,10000,6769,11129,11127,10518,11121,11090,7970,10048,9336,11120,10229,11136,11200,11199,11222,11217,2913,10979,4254,10314,10778,11271,11169,11266,11280,11282,10184,11315,3647,11201,11338,11352,11324,11382,6646,11351,8517,3574,11436,11435,11447,11424,11417,7828,11447,11480,11496,7009,11494,11359,11477,11494,11488,8884,10873,8281,2063,9950,11112,11554,9950,11603,5688,11112,11554,11603,5688,11195,11608,11680,11679,11682,11717,9989,10294,10338,11736,11446,10875,11719,11800,11850,11851,11825,11855,11478,3913,11895,11879,11344,2615,11900,11904,11923,11902,6139,2882,5997,6155,1108,314,5908,6102,5256,2113,3037,4730,4766,6104,5995,2324,5247,5088,6829,931,4412,1825,5883,2156,6633,1052,4898,5962,6825,1038,6006,3358,6364,7878,4555,7276,2845,6741,8095,8064,7262,8022,4130,2594,8078,1010,8403,7719,4770,2182,8141,8516,8306,1645,4728,4254,1257,4767,4233,8578,1559,5373,8722,8552,8289,8639,2989,8,3989,6154,7374,8841,8095,934,8587,8915,3262,5763,3297,8144,4337,8615,2381,7919,5837,8484,6907,8836,7904,5065,5066,7834,8580,7836,9058,4670,9305,9318,9269,9254,9333,9387,8220,5267,9421,9322,9365,9459,9509,9338,9479,9403,233,7928,6103,8628,4800,9366,9526,9641,9656,9763,9770,9028,9136,9527,9406,9798,6857,9648,9347,9634,9871,9930,9942,9750,9947,2985,9030,3479,9968,10008,9950,9935,6738,8776,10060,9978,10011,61,5477,3933,10061,10079,320,1268,1536,3162,3612,10108,10172,10128,2093,9951,9954,609,9439,9045,9032,7833,2137,10210,9998,10221,1815,10303,1816,9214,9059,8891,3701,10354,10338,10307,10366,10375,9832,10351,8139,10482,9245,9807,8828,10523,10481,9373,2025,10615,585,3904,9043,10666,10648,5795,10258,6700,6548,10569,10244,10568,9904,8900,9831,8837,10548,8925,6713,10870,10880,10895,8888,8901,8902,10857,10767,9086,8089,10702,8800,10911,7828,10619,10620,10705,10621,10899,10142,10903,10935,7807,8966,9603,2635,8780,10301,427,2156,10340,10060,9365,10279,9773,7903,5134,3913,3913,4739,8780,8780,8290,8290,7833,7910,7910,4796,3712,3712,4094,3389,8435,8435,1988,1988,2384,2384,6740,6740,4230,4230,7261,9830,9674,9674,10482,9389,1142,1142,9387,10738,6548,8741,9975,10666,10907,6548,7261,7286,8229,8371,9378,9378,9378,9378,9378,3957,6548,9090,9090,5402,8541,8290,2555,2555,1993,10339,4349,11380,1699,6102,5995,6104,4395,5339,5817,4639,6364,5906,6103,5916,5688,1016,6713,4800,4827,3542,3625,3474,5764,4784,4087,6858,6691,6782,6829,3554,5175,5965,4424,1755,1764,104,3574,6951,576,609,2849,5763,4510,4087,4046,1345,6809,6979,2300,6731,458,6845,7358,5961,1988,3719,1993,7214,7019,3704,6795,7839,4224,7605,7890,3823,4774,7810,3908,4659,7920,2643,2658,8196,233,1511,1984,8548,7883,7216,8144,8031,8514,8089,2294,4258,222,2989,6006,7804,5252,1984,1458,1084,8999,8108,4452,1490,582,3492,1823,9028,9212,9213,9079,3712,8224,4613,4704,1300,2849,9116,4082,4136,9372,8559,2491,8358,582,5961,9258,9375,5636,207,8274,3890,3891,3893,539,542,3896,8271,3882,3892,3894,8273,3884,5567,9937,1253,2933,5545,4178,446,3889,9377,9799,9212,535,3244,6642,6891,4082,10000,6858,539,10243,9438,9437,10181,10568,385,389,8858,8789,8515,2356,380,10354,8787,8005,4087,3401,3990,4613,8534,3474,9439,9214,9930,9648,10120,9680,9764,4046,4411,1490,4049,4050,1973,6738,9823,3493,6876,11027,10114,5175,11298,11020,11235,10674,6591,11339,5207,9243,11495,640,5732,2023,6023,2221,6034,8941,9405,7374,11359,984,11413,538,390,6066,540,532,528,11353,6894,5262,3957,3957,8686,450,10296,1953,9889,1589,8213,8909,8909,9832,10541,10541,3070,3073,3071,6689,8573,8573,735,2951,9378,4405,6441,554,7300,3073,9418,7024,8627,8088,6688,3883,573,3884,10336,7985,549,550,6386,539,551,9483,7987,10072,10649,1765,8971,1771,5839,1767,7704,7706,1765,9949,2605,1769,11028,3877,10607,1768,1766,531,10044,9502,2822,6489,10963,2779,2785,2786,2791,2778,3359,2799,8192,2816,2522,7698,6596,510,4146,10067,9633,10922,10923,10924,10433,11017,8582,2808,2812,2781,8154,11071,11068,11067,9555,9554,8241,8244,3784,2817,6354,3070,3073,3071,6688,6689,7752,7753,8627,8088,11161,9037,6526,11238,2820,6521,2794,2789,3891,3877,4305,2818,9665,10053,10544,10975,524,11221,526,9383,9867,529,6855,10232,8943,11407,8316,8944,9418,7881,10644,11390,11393,10640,8878,10645,374,11422,11109,11406,6538,11320,525,6537,538,6536,535,6535,542,6534,540,11321,6506,6505,6533,6532,4599,4598,8727,382,735,9184,9679,8596,6442,2824,7999,7998,10857,10866,11523,11131,10930,10931,3913,8584,8586,3073,3071,10247,6689,4701,7647,10053,9665,10212,7753,7752,8088,1257,8627,9277,3428,9037,9679,1616,7239,6688,8944,1215,7881,9647,9867,7281,6537,446,10056,6534,6535,6506,10008,5386,9259,4765,10342,9133,8946,9132,10347,10541,9383,9370,7659,7251,8400,10615,10672,10232,8402,9303,8403,9383,240,7662,10741,7080,8891,8251,51,5994,10275,10814,10552,5053,10738,10673,10910,9048,9389,10820,10836,8208,1303,6894,10267,10976,10975,8441,10649,9609,9889,10483,7953,3908,11024,7917,11010,6593,4438,3865,1302,3337,6183,7666,7664,7092,7100,7268,6798,6548,7245,7112,1173,6715,6102,2417,8044,6127,7074,3248,2342,374,385,7085,8205,7271,7123,8198,8469,7089,8438,6807,8740,8577,8640,1296,8418,8447,8447,368,6076,8568,8362,8362,7251,7251,8424,6614,8203,7095,8395,8251,6082,7656,8201,8201,7068,8408,8207,8199,8471,8646,8537,8282,9203,8724,8396,7660,5872,5872,7101,8768,7944,7944,7659,9158,9158,9199,8570,8737,8737,9658,8058,8269,8269,10185,10185,10185,10051,10051,8268,7932,9889,7103,7097,10451,10399,10400,10401,7105,9140,7296,9116,7900,8780,10455,8681,9538,8255,6953,5371,104,8869,6181,9135,9049,7774,4395,4146,10349,9543,2897,9405,1770,9758,10339,788,10309,11010,120,10754,10985,9543,4659,9340,4568,1782,10000,9770,9714,9753,9863,9701,4435,11298,10649,6548,11347,10892,2467,2989,11454,10780,11622,3327,11623,11227,9765,5269,11497,156,11621,10455,11752,11751,11101,11748,11325,713,10670,7374,435,9378,10056,3913,8306,5477,4739,6809,6870,4742,9946,10314,10871,8358,916,9771,3863,5435,5806,5419,5385,10987,10687,9863,10976,10910,10985,11293,10816,10279,10496,10034,5269,3327,3327,3327,5995,9125,7084,8648,5267,4349,7982,8279,5872,4985,2029,4983,10061,7640,7249,9674,2261,7970,4566,10267,1142,8046,7374,10543,8209,10121,10547,10236,10674,8087,10814,10649,10269,10978,10021,10976,9094,9762,10281,8069,576,10566,10609,5913,11127,11024,1371,10768,9926,6119,11201,8290,11200,2897,11344,3908,6103,10682,11272,11134,10404,11232,10505,7937,9083,8763,11376,8713,7670,11468,3646,11225,10961,11225,11332,10687,7837,9389,3646,6733,4639,10721,10279,6700,11265,1398,6678,7270,7251,7251,1126,6595,6447,2849,7856,6595,7296,7856,3595,6795,7296,7904,7714,7879,7271,7101,8053,8058,8034,8076,8040,7119,7931,8046,7878,7548,6155,7946,8284,8209,6235,7273,8373,8418,7840,7878,7879,7115,8481,8573,5320,8220,7280,4878,5320,8720,7971,7275,7297,7971,8761,7298,8419,7670,182,8683,7761,7547,182,3895,2522,8682,8618,6936,6938,7675,8698,8739,8933,9030,7124,3080,8412,8908,8580,7103,7083,4258,2605,8847,9134,8358,6354,9336,9134,8042,9244,9329,3070,9322,3073,1349,4460,9071,7087,9449,7239,8064,8458,6514,6514,8405,6986,9312,8832,6700,9367,9093,9777,1381,3760,8436,4299,3541,4160,8681,9958,9874,4178,2253,6619,9143,7368,1770,1765,9932,10109,10087,9603,8724,7113,9603,7649,9200,10008,1767,1771,7692,7690,7686,3172,5837,8896,1609,4805,3071,3875,8220,7020,3590,1766,6740,1688,9963,3282,9769,10008,6828,1787,6642,7752,2261,8220,7973,7751,9146,2915,10379,2349,4847,4847,4728,675,1785,169,9951,9486,7368,5245,9951,9082,9026,8255,6658,9932,2474,8956,9009,3908,2337,9384,814,4330,7203,4234,7059,6624,9879,1357,7203,814,8856,8855,8761,1698,1308,1776,6030,3250,1766,9873,9833,3893,8793,1461,9344,6715,7235,2784,7246,9893,6427,9052,9115,9052,4566,1165,7903,3380,1215,446,8942,7823,9824,10742,4535,10475,4535,10475,8742,10965,6728,6700,8080,10737,3860,9676,8669,576,9496,10929,4947,7598,9547,6416,10422,10381,6764,10264,6751,544,6151,6763,8160,6493,7705,573,8158,9859,1664,7605,2605,10416,2270,10742,8394,5484,10356,7751,10789,11289,6776,5487,9368,9367,8323,4730,93,11268,10836,10056,9300,8082,10768,10767,11719,11781,8910,8514,10722,10722,11670,7895,10543,9406,4512,9679,8945,9867,9665,9439,510,10053,7772,7770,10232,7771,511,512,7637,7638,7596,535,549,548,541,542,538,540,539,537,536,543,533,532,529,531,10544,3719,10354,3115,8559,3559,9624,8705,7751,7972,507,2018,7973,9626,8704,8174,10646,9137,8174,9625,10642,5484,10647,10840,8015,10388,10988,10222,8989,7927,10444,10445,11163,7196,9569,341,10649,507,10674,10543,8538,10665,10673,8927,10836,10550,8927,5305,5842,9889,11202,8805,9249,11018,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,8922,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,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,1215,10061,9202,9543,9612,10528,766,7019,7761,8222,4635,9463,8793,4178,5148,9897,9195,4796,9892,9552,5995,2033,9925,2605,9987,10044,10894,11238,6740,979,10877,2932,9942,7238,10432,735,6146,10466,3029,145,11069,7610,10988,8512,11071,8109,7840,7299,7879,6800,9363,10002,7878,8002,9354,6986,9321,11068,9900,6971,11067,10893,10064,1762,10520,10892,11460,9366,5210,9752,10474,10368,9249,1812,1536,10050,6894,11264,10803,10804,9638,10042,6836,10805,1521,252,10416,2294,10787,11021,10133,10822,10632,10636,10937,9665,8007,9838,8995,10120,11221,11126,11104,10661,10662,11162,8290,9566,10966,5872,3863,3913,9951,10844,10844,6715,10670,10844,10670,10844,5435,7592,5435,7592,3327,9863,3327,9863,11410,3913,223,8683,5371,10649,10669,9976,10731,11216,10248,9717,7778,9024,9021,11399,10940,9701,9710,6740,6548,8139,11101,7990,11364,5572,11342,11371,11372,11424,8514,3358,3327,1767,11328,1769,11289,3327,9889,10113,7752,8088,7881,8727,6688,10544,10679,11101,2253,11272,11289,3327,10865,10975,8946,10910,11373,7752,10114,11361,6103,4659,8088,892,10362,10670,6237,6392,5806,2969,3838,11489,7159,11551,9863,8586,10836,8256,9383,10687,11121,11325,783,10526,7385,9300,4985,1993,6740,11380,8220,10278,4639,10056,11264,9865,10940,8358,6367,11690,11366,223,9946,11662,5792,1250,2033,3327,10731,10687,6354,5986,11329,7910,11497,10937,10687,11410,9393,9300,10579,11101,2749,5567,450,11497,3863,9865,10836,10477,9488,8436,5435,3913,10526,1993,10940,9865,7849,6715,10687,3327,11409,11524,11619,10667,2594,4234,5371,3702,501,9030,3989,5148,6740,7238,8220,7975,1371,7143,7833,7903,5995,9614,5322,5070,4796,766,7019,8948,10148,10173,9300,10187,10146,10056,9378,10526,10892,10836,10964,8435,11121,11027,2253,4791,11089,10149,5853,11018,11101,5567,10491,1993,11733,11690,10716,8438,1974,11788,11497,10523,10523,8290,7928,8686,11661,10937,51,9278,8175,2997,2766,2389,358,6364,1402,217,11658,11774,1250,11650,11660,11659,10454,10321,9537,11662,9543,11657,9679,9889,10860,4701,11770,653,11811,10481,10722,9096,9687,6183,11734,9694) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC