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,9840,4510,9840,4510,11024,10235,8255,9946,7048,8715,7535,9340,4996,6482,9220,9638,10932,10935,10212,6984,10708,10709,10710,11106,10760,11220,6779,9910,4061,8031,6986,162,180,1769,840,6642,1257,10988,9386,9872,10974,9543,10816,9751,6700,4639,11023,6548,10759,924,5647,3327,2554,10537,924,840,961,10961,9715,2989,4216,10825,8845,8617,8142,7493,10696,10032,7708,9386,4923,9976,11519,6854,653,10386,1990,3327,10940,10731,10731,5810,6966,4769,6715,10695,7977,6762,7680,9829,446,2594,9946,4338,10211,1765,1770,10567,1947,6354,1771,11216,10953,10960,11257,11117,11117,10339,840,10825,7680,863,6920,10812,6919,10423,11091,6916,6918,6753,6760,6913,8882,10813,857,6762,6761,10390,10387,10389,8983,8982,6914,10489,10167,368,8358,8358,7953,10731,7833,10992,2830,1993,1983,10309,9043,10687,8139,10670,10296,11257,6700,7587,7604,8154,7165,6181,9375,7206,10970,1667,850,10510,7283,1257,7175,11133,6650,8882,11052,6794,6769,11102,10892,10291,6459,5913,6042,9367,9368,10522,6621,4473,9028,10671,10829,10546,9738,2856,7080,9816,7584,10185,9405,8939,8574,9710,9258,10023,11222,11286,3913,7088,8771,6806,8419,11315,8689,11291,11331,10188,11351,8520,11300,11345,10767,8822,9083,11344,9669,7273,9305,6076,9670,9671,10839,8092,11347,11409,11449,9671,9954,10672,7046,9955,984,10686,10761,10220,10675,10767,2085,10869,10947,5922,3346,10113,7752,8088,7881,8727,6688,10544,10679,2253,11272,11289,3327,10865,10975,8946,10910,11373,7752,10114,11361,6103,4659,8088,892,10362,10670,6237,10228,6392,5806,2969,3838,11489,7159,11551,9863,8586,10836,8256,9383,10687,11121,11325,5647,8306,7020,10339,10526,5995,4801,2467,6740,7238,8220,446,223,2117,10836,8388,8302,1371,2913,5567,8520,11497,11497,11226,11770,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,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,10670,10940,8933,1145,9300,10056,10836,11121,9838,1533,10106,4784,11082,1770,8358,223,7374,9125,5484,8780,6891,3949,8255,6642,9340,6367,4801,9300,1349,4450,3784,4259,3531,5400,4405,2658,6855,222,6740,4259,3784,4450,8358,10627,6010,2033,10056,8535,2932,4639,9603,10836,7738,1666,3784,4450,5371,3783,4259,4535,3428,7374,9340,8491,4395,2389,2399,4519,5602,7374,10649,8683,5070,10649,10764,10892,8714,2594,5484,10257,1398,2594,11402,11497,10257,11324,11315,11281,11497,2458,11486,11523,8584,11829,7783,11953,5567,6548,8139,10228,7990,11364,5572,11342,11371,11372,11424,8514,3336,10687,11214,324,11305,10941,10773,10889,5995,4659,10770,11367,11763,11632,11224,11794,11628,11629,11778,10890,11607,713,11926,11946,11754,11711,9865,1767,7631,6354,6220,1768,1766,1771,1765,1770,6688,9920,1769,10176,10098,3073,10175,3071,8583,9880,4714,6689,9679,3070,1266,8727,2506,272,6198,5810,9824,7881,7752,10053,9665,8899,8897,10067,8896,6200,9867,9031,8489,6215,8668,1766,4842,4286,6218,4297,6216,2794,2791,6497,2789,3071,6880,675,2786,2785,2787,3465,2783,2781,2779,2780,2782,6443,7868,4304,4293,10258,2778,979,7311,10238,9473,10251,9669,4224,2951,1970,6679,9477,10188,3385,6002,8233,9073,9243,9478,545,8714,9383,9476,529,40,10055,3358,10294,9483,5207,1690,7185,7184,8815,4223,9632,3525,1369,138,7178,7179,7632,7189,4386,7176,9921,9637,1137,7187,6198,6362,1325,10258,10398,6382,10608,3875,7837,7834,9376,10607,7835,4931,3254,10552,7836,9297,10467,10536,1557,10568,10232,4,510,9474,7771,7770,6688,511,512,7637,9626,867,9067,9625,9670,9671,10612,8729,9475,8881,8161,10364,9624,10626,8882,8878,10642,10647,10639,10643,9880,9625,8880,10644,7569,7762,4804,7567,7570,7764,10298,9493,7698,10641,8016,10640,9906,9907,9970,10043,10253,10255,10256,10637,10646,10254,10752,10531,7300,10645,3165,10521,10753,10548,2261,6855,222,10522,1520,1917,3059,1461,3595,3493,145,8306,4178,5995,10212,11105,6710,7019,6876,7761,11032,8222,8793,11031,9195,9552,9925,10229,11106,9661,10397,10315,8965,9675,9655,3874,4923,4146,3409,7172,3511,10749,10938,9993,10544,11033,7753,8627,11109,8088,8946,8945,10927,8944,8668,6263,10975,11121,10641,3236,9933,7810,8110,10239,10821,10822,10931,10930,10840,10639,10637,5066,8943,10748,10926,10928,10797,4923,11255,11252,11254,11251,7592,7554,7754,7755,7756,7927,10564,8509,11246,6740,40,6683,145,9635,5,173,8978,10207,11217,11240,9363,6639,4023,6732,2843,5431,8220,9300,7238,7912,11325,7849,10056,10836,1368,28,6598,10637,848,7580,1769,1766,1768,145,8175,1765,10893,1983,7304,11395,9072,11397,3327,11398,11401,9543,11382,30,152,801,9,11383,1230,9352,8389,11381,11328,11431,11421,11171,10057,7356,6773,11396,6792,10687,4510,4752,1973,10788,11442,5363,122,10827,6359,1411,9466,11479,11473,11476,11359,10829,11478,11480,11468,10278,3014,6727,5513,11177,11477,6692,11416,10520,9149,8154,8002,11067,11071,9322,11517,11181,11550,8904,9677,11342,9378,10350,8688,11598,11552,4329,11175,947,4103,435,5269,10826,11024,10649,10478,11053,5770,10831,10749,9863,3702,10940,10940,1770,1765,4510,11216,4716,10439,10440,10130,10660,9916,10649,8255,9268,10932,6192,6113,6010,4985,1516,6001,2168,6559,4682,6118,5893,6158,2269,6154,508,6011,566,219,5222,5321,1425,5917,6782,6362,1603,3824,3856,4417,4617,5011,5208,6785,1398,2911,3216,6780,423,5837,6136,6806,6691,6973,6972,6947,255,1370,6156,6157,5222,239,6059,7299,7034,7023,7303,6795,7206,6633,6981,4788,1029,6337,947,1126,5334,1325,4432,466,3549,156,566,5582,3760,311,1738,464,7904,6192,6813,4218,435,7833,1245,4385,1207,2776,3761,7928,6163,5542,1532,1600,698,236,3131,8557,5011,8614,8535,8554,8550,8614,8305,1029,8547,2331,4983,7861,6712,7602,2737,7599,5143,8871,7928,6778,156,3875,3046,3531,4730,4765,5893,6813,5915,308,6156,9448,7982,8151,6644,6831,6767,7938,9403,9307,6829,801,7913,6953,6894,665,9889,9926,9933,93,6163,8284,9665,10067,9953,9721,10046,9722,9449,9545,9603,10118,9754,10055,10145,9723,9835,9836,10112,9942,7812,10679,10113,10501,10512,10495,10628,10626,10697,9724,10237,10353,10358,10366,10482,10608,10497,10610,10876,10715,944,11330,7889,1886,11291,10294,11287,1210,10877,10938,11136,10935,11134,11200,6898,11232,11347,11290,4899,9558,11233,10684,10733,4603,4602,4600,4599,11358,9728,11364,7019,8222,9993,11219,11324,3595,9195,9552,9925,11027,11112,11115,11127,11435,11552,11738,11449,11447,11456,11586,11236,11460,11551,11372,11622,11825,11371,11360,11699,11773,11524,11135,11774,11832,2867,11845,11441,11363,10910,10493,10904,10820,11119,11585,11587,11589,11592,9342,6836,11935,11936,11937,11938,11849,11010,11195,10531,10702,11300,11117,11365,11412,11380,10212,7775,6642,11486,9889,10107,11292,7884,10892,9405,4362,11358,11384,3327,10667,10687,11074,10339,1993,3863,10687,9865,11497,11216,6593,10212,8912,11658,11660,11655,10305,11266,311,582,8388,582,8388,3327,3327,10687,10339,10687,10339,11400,8388,11327,10472,4923,9524,9865,1993,9767,10107,9770,10054,9863,3327,10904,10442,9900,11442,10115,10892,11443,10687,11436,3646,1765,1765,3646,8962,1771,1767,4639,2520,8815,10278,1755,1116,4563,11658,5419,4784,5175,11328,11298,10731,5484,10872,11324,11497,10788,8686,11461,11410,7159,5098,1974,1726,4923,9856,1307,9488,10301,8650,8130,10316,8130,10316,226,4923,11215,11215,11497,10579,5435,10731,5435,10731,11452,11452,9386,10394,4405,9936,993,7135,10505,2117,8947,9463,10339,10653,10649,7003,9536,10683,10518,10002,9900,10368,4769,5770,4801,7160,2521,2522,5647,10526,11266,8223,9116,5839,10368,10974,9983,10904,11443,11442,9669,9670,3849,3564,10719,10316,10736,2164,3282,11657,11673,10093,11451,11659,11658,11660,10375,11714,11314,11681,11703,11494,9471,41,9897,582,11620,10886,11346,9868,9942,7027,11486,10840,8108,9945,9524,10935,6325,5994,9832,11135,7299,3327,11486,10301,11226,867,10884,9842,26,4918,11298,1511,1604,9863,4302,11028,4301,11228,10751,4297,4286,8816,4305,9078,9257,4294,9483,9258,11085,2998,4639,4296,4287,10764,3913,11082,10672,6354,8933,3070,8681,3073,11439,3071,11438,6689,7753,10039,11476,7752,11324,8088,173,8627,10236,9037,10053,11477,9665,10892,9037,9665,8816,11658,10053,10975,10544,11221,11359,2989,9383,3327,6616,3898,4199,4512,9116,11822,510,4316,10893,10716,11328,8306,5995,2594,766,4769,10721,10687,11323,11637,11263,7912,5435,7380,2989,7874,11298,11886,4769,6892,4769,2009,2506,1967,9863,11484,3327,11688,10670,9044,8290,11373,10687,8290,11380,6740,8220,8434,5770,11489,9951,6822,10966,5435,9418,10892,10984,11485,10932,6242,11285,11342,7976,11455,10141,11477,9950,11328,10731,11215,10343,10278,947,1207,7641,9655,10505,9533,11289,10566,8169,11272,10687,4779,11226,6004,4574,8109,2342,11303,9389,10909,10339,11900,11363,11302,10380,423,396,10344,11217,11314,11435,11314,11435,8260,3327,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,5567,10491,1993,11733,11690,10716,8438,1974,11788,10228,11497,11028,10934,1988,582,10940,9865,11410,10754,3327,9865,11744,4769,7775,10687,11399,10676,6977,9866,11329,7910,11497,10937,10687,11410,9393,9300,10579,2749,5567,450,11497,10228,3863,9865,10836,10477,9488,173,11306,9359,10669,9849,5769,10339,11710,11439,3327,11439,3327,9915,11434,3327,9865,11751,11121,8220,11296,11299,3913,11601,9890,8512,9309,6082,8168,7548,7632,10056,11656,11089,7920,10874,11020,9543,11326,11784,4320,7143,8250,314,10844,3830,6197,3989,4580,275,4860,1165,4234,3860,5535,726,393,2882,2160,4730,6154,1537,4131,5996,6545,1137,543,397,6138,6040,6559,4023,725,6686,6679,6197,7879,7840,7143,7878,8220,5764,7903,8183,3784,3263,215,8222,6750,7998,7638,5995,3761,2467,419,6981,1506,501,2706,8306,3059,971,1215,4178,1257,7833,3134,3368,8542,8616,8488,7840,7879,7878,4259,8529,8306,5143,466,252,6204,6539,7631,7870,7582,4136,3542,8434,4788,7896,8611,8615,3413,2261,7641,7837,7615,7903,7834,9144,8983,6713,9300,8842,9130,7910,9547,6023,10119,9220,9807,10548,10244,9752,9770,10523,10526,9924,10300,36,10688,11733,11346,10569,10892,10734,9811,10674,11325,9831,11380,10687,11749,11215,11311,9543,4639,7953,11661,11497,4788,582,11631,11632,8087,11754,1755,933,7910,11271,10892,11116,11813,6367,9692,4337,9296,4432,8389,7218,6740,7828,8145,9382,3169,3532,9392,1230,9543,9389,9066,3574,3581,7882,8661,10056,7877,10031,1044,10258,9953,6141,4156,7632,10273,9090,9507,10032,10113,9972,10484,10514,10476,10471,10776,10474,10414,10836,10905,8991,9136,8926,10751,8185,10935,11082,8175,2867,10111,10884,9976,11325,2171,8962,9011,8289,4906,8102,10170,11361,11690,10622,11742,11402,6134,10667,2331,1245,4964,6221,4178,8324,6740,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,8922,11352,9871,8262,11437,5997,1049,10741,4362,8377,11519,4720,6806,11670,1803,1831,3824,1016,7561,1993,8966,8481,8481,8833,9667,9667,6548,6548,9529,9148,9259,7288,7288,7288,7288,7288,3327,8739,10670,6700,11051,11296,11022,10056,11585,9349,10097,2417,2749,2780,6443,11022,11296,8255,6953,5371,104,8869,6181,9135,9049,7774,4395,4146,10349,9543,2897,10228,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,11748,11325,713,10670,7374,10940,1823,9257,152,9704,1345,5024,12023,10687,11239,11453,11672,11497,10579,10687,11293,11670,10778,11690,10702,11734,3327,365,374,8034,10176,7716,9340,11401,11401,8825,11399,9985,10107,4405,8714,10687,5567,11216,10669,1770,10753,9407,10687,1765,7631,1771,10644,10642,9520,1767,9084,1769,10647,8586,1768,11321,11427,9217,1766,379,6354,11432,11218,3073,10645,3070,6689,3071,8618,10639,10752,6688,10463,10643,11320,9633,10641,10332,10323,365,9231,10325,9665,10053,10957,11650,10975,10544,11221,10326,9144,10331,7753,7752,11677,9792,9147,10327,9217,10328,8627,8088,9156,9679,9037,10232,10329,9867,9383,10232,9867,9383,10232,9867,9144,8944,8943,10463,11085,10637,10333,4701,11677,9912,9911,11723,9232,11618,10330,11493,11799,11050,9147,11354,8727,11069,11836,6800,554,11001,9473,11878,11877,11587,4282,11898,11899,11876,11347,9225,9338,7715,4234,8063,9082,9362,8644,3884,7121,8615,6134,8412,9264,7280,9398,2677,7984,7932,8306,8423,9662,9382,7661,7759,9658,9464,7662,9148,9659,5179,9844,7108,4947,7023,1533,3493,9563,1461,2995,2417,7986,4046,4769,10076,3863,8891,6781,8449,10026,10051,9220,10212,10077,10126,9821,2644,2455,10025,5454,10185,6209,3875,10270,6986,1370,7280,10275,10273,4906,956,7149,9444,10436,10063,9787,10506,9325,10149,10314,8782,9543,10523,9741,450,9533,10271,10578,9822,9747,180,4724,8972,8762,10768,9492,3891,1370,10767,7985,4762,10257,10890,8071,10854,9373,10882,9993,10888,10302,10881,8783,6102,10554,9608,6876,10887,7251,10190,3863,10789,10702,11130,9793,10078,10938,5251,8743,10965,10991,11025,11027,11188,11224,10823,5331,11212,11268,11189,4778,11278,11196,11281,10670,10701,11038,11262,11329,11187,11337,5454,11108,11376,9795,10274,10412,10187,11402,11336,7913,8474,11215,10862,11455,9199,8423,11228,11524,9417,9308,11331,10839,4645,7261,7792,4791,10615,11449,10072,11511,4355,11633,8721,11302,7986,9817,9481,11628,11484,11700,9993,11038,9649,8366,7363,7094,11117,10818,11629,11760,4401,11797,3883,11758,11444,10891,11776,1371,2677,10360,11553,5331,11793,11327,2658,11105,11763,9398,6904,721,11712,9554,585,8460,10716,10481,11743,2989,8388,11794,1198,8260,11957,11755,223,11622,173,11626,11801,3564,11884,11771,2894,11312,11915,11034,6367,10617,11714,11656,10892,11910,11644,11658,11662,11491,11703,11660,9467,2644,11716,1990,8358,2628,11665,10687,9501,10687,11655,11716,8489,10649,9951,9386,10505,10826,10909,10676,10742,10802,6613,11752,10579,11238,11885,10599,10983,7388,8816,1988,10731,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,8922,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,10072,11603,11968,10297,5763,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,10228,9830,9674,9674,10482,9389,1142,1142,9387,10738,6548,8741,9975,10666,10907,6548,7261,7286,8229,8371,4845,8139,7962,10882,10579,7953,7953,7962,11486,10150,3327,3913,6740,7910,7910,11271,10649,11714,1371,3646,11952,3913,3327,10228,11853,11497,11497,10687,11519,2467,1993,10526,10526,7238,6740,2992,7304,6740,11726,11744,10056,11414,11655,10228,9879,6740,5769,11228,10321,3465,2265,10728,9217,9231,10801,10526,8961,9147,10170,7904,8517,3884,8272,7986,8961,8874,8310) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC