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,3850,6158,4121,666,4338,6335,2594,1070,6350,4185,1520,5995,233,6010,5252,2263,4218,5915,461,2261,4597,714,6001,6130,6589,6155,220,1038,6636,3823,3555,1973,1357,3555,6631,6658,5145,4607,4920,1358,1526,6531,6530,6529,6528,1768,6521,6872,2782,2784,7096,1704,3442,5691,5909,6538,6533,6512,6511,2783,6510,6509,6508,6514,6515,6513,6507,6149,3898,7300,6145,6221,6220,1988,3574,6648,6383,6176,3967,6984,6947,7032,7033,1153,1983,4923,1296,6316,5719,2889,4362,587,2399,6583,7641,6726,7158,5769,8230,8109,1070,6366,3302,1988,5719,5719,3449,6428,6428,3522,8352,8352,7976,7976,7918,1526,6702,4694,9030,6122,7874,834,5961,2503,6428,2503,2503,6428,970,4639,8358,9258,4671,4923,2417,5782,6578,1726,6794,1296,2729,1153,1988,6962,4920,5853,1973,6844,317,1732,6003,1462,4437,4437,2749,2749,7264,3704,7068,6583,6583,6583,6583,8182,8182,8182,8740,8424,8201,7245,6631,8573,8573,8384,7666,7284,7284,7284,8204,9574,7931,7639,9765,6368,6631,6740,7241,7241,7241,6561,6561,7912,7117,7117,8832,666,7085,9049,9049,9049,9049,9908,1307,1307,1307,2331,1245,4964,6221,4178,8324,6740,2021,7238,6270,1557,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,11101,4362,8377,11519,4720,6806,5858,5858,6357,6209,6205,8833,6715,6548,8281,3913,8255,9300,5995,4671,6865,6569,5769,8710,8710,8710,9340,5484,3327,7211,5788,6892,2467,2349,8137,9946,4435,3336,3336,9791,778,7238,546,6658,857,5742,5733,4716,4437,2041,3863,550,8220,6381,553,7539,529,7149,8440,532,539,323,313,397,860,6386,549,8542,5853,6769,526,7704,538,528,525,7704,5853,540,551,864,544,1730,545,531,543,391,535,541,387,536,382,1271,4769,376,524,377,365,376,374,6270,384,2856,8787,368,6066,6082,385,394,6197,8858,372,6076,317,3913,317,3913,6382,6523,8165,375,6526,8496,3879,7588,8989,8530,8160,3823,6854,6391,8159,8157,7300,7605,4701,8785,6144,9437,9435,8244,9438,8340,3879,8699,8874,5770,8316,9146,9414,9409,8700,8245,9436,9425,9408,9184,8883,8329,8247,9182,9415,8332,8318,8324,8326,8319,8241,9592,9183,9428,8248,9431,9894,9150,9143,9534,9190,9908,10045,6768,9300,7632,9154,6396,4501,10056,9792,9891,9155,9156,9217,10202,9156,10198,9854,9217,9502,10193,9502,10193,10197,10195,9147,8333,8335,10099,10102,9151,8330,10218,10147,10333,10322,10323,10217,9412,10102,10336,10332,10334,10101,10331,10100,10324,10140,9433,10213,6646,6394,358,7288,8768,6962,6383,8523,1664,6110,8523,186,5965,8831,7912,6715,6832,6402,1296,3823,3865,7912,6383,8356,8355,7805,1308,7918,9498,7541,7541,6367,7918,9065,26,4437,1345,7505,6897,8659,2635,9762,8005,9729,7711,9467,2384,6394,7917,1726,6174,9729,9856,9975,9975,9737,9737,10056,10035,7966,7966,8130,7917,7879,6209,8111,2009,7976,7977,6845,2024,6870,5822,2263,3874,3874,9479,9752,4146,8835,5516,7906,7572,1591,6102,3457,4769,8268,8202,8399,6264,8425,8200,5994,4362,7280,4218,7897,358,7548,2399,6819,5380,4320,4320,7597,1371,156,8223,7281,7655,458,8947,461,4900,9292,5784,6578,7204,8580,8404,9584,9582,9583,9585,8255,8255,9650,2913,2253,455,6843,7114,7547,8614,1492,7664,9737,7953,3883,3885,8387,9137,8651,1973,8899,6727,6843,6667,520,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,840,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,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,8970,3598,8613,3823,1988,1988,7861,6103,675,6831,3409,5947,169,6740,7238,8220,8220,7913,7913,8733,8516,8516,8563,9338,9784,7874,9762,9846,9488,8302,9322,435,4784,6174,9951,4788,4788,1207,8885,5251,6752,9049,1425,8171,1198,10235,8171,1533,6691,2467,6691,2447,7396,2294,1253,5817,5545,5817,1347,4258,7883,608,1699,7126,7920,8999,9937,7849,10065,10292,5339,10065,5295,6691,6691,8171,10568,8111,6691,10296,10211,10671,1296,10664,7591,9812,2294,1253,6152,7761,1439,8193,4290,233,7919,7019,501,6707,2123,6010,8222,4304,1119,5286,6337,1080,4131,1038,8031,1121,6679,8514,1215,4209,735,8089,585,3941,4220,6635,5995,1349,6639,6732,3244,5487,7920,6848,2294,4625,3003,1253,3142,7839,5817,2894,1347,6981,4258,4460,4082,6858,1165,3080,7883,5339,7126,2933,3913,5545,8134,8805,3195,8795,5807,1432,7709,8915,4652,8548,7550,8935,8936,8979,3368,8932,3715,36,8687,2590,1298,6862,7896,739,9000,1572,3396,8905,5739,4648,9200,4337,9196,9081,6595,6740,7238,8220,8904,3115,3559,5331,507,2025,6632,4233,8688,9300,4566,7710,3612,8615,5875,4355,8104,4209,179,4553,5349,9372,9038,7025,5039,321,2419,4128,5236,228,9604,6986,9249,6407,6700,8651,9777,9777,7815,9017,9296,3775,4437,4769,9376,9542,9542,9952,9768,7104,6843,7976,9951,9865,9889,9889,9889,9342,10235,8963,6367,8292,207,10248,10438,5853,3863,10339,1770,8817,1765,2033,10296,1993,1771,10716,1771,10940,9836,1993,3913,11202,11327,11215,6586,11323) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC