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,7095,7115,7270,7247,7100,7074,7153,7119,1198,2995,7152,3392,6659,4519,7102,7109,1533,5777,1145,7243,956,7092,7089,7266,466,7716,1885,7906,1439,7263,7096,7249,7068,7154,7277,7106,7294,7110,7295,7268,7250,7281,7275,7093,7241,7666,7249,7265,7292,7088,374,7293,7125,7281,8408,7288,8201,8220,7282,8577,8404,6138,7279,7080,2079,7280,8406,8400,6138,7704,8361,7266,1245,7264,6879,9302,7671,8782,7967,8034,8049,9289,4580,8402,8450,9581,9148,9315,9259,7092,8645,7089,431,6771,244,8398,9573,9039,9939,9630,8080,409,1740,5516,7906,7572,1591,6102,3457,4769,8268,8202,8399,6264,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,1380,8580,8404,9584,9582,9583,9585,8255,8255,9650,2913,2253,455,6843,7114,7547,8614,1492,7664,9737,7953,3893,543,528,538,788,2023,7174,551,540,8404,532,6382,546,541,553,545,544,536,533,6493,542,531,6031,550,548,8212,8240,8529,7985,8771,547,391,2218,8832,2521,537,526,3881,3894,535,6204,6042,3889,7833,539,7816,8917,529,6788,2573,8274,8271,6650,6880,8273,8462,2521,546,2843,7815,529,542,3883,536,7075,7076,7666,4566,8839,7109,7118,8231,3908,7804,3829,9144,5732,9048,8716,9076,7175,573,3882,7647,540,526,7935,7150,7671,9132,3883,1557,2087,9744,9138,7642,7642,9794,9950,8365,8365,8365,7649,9875,10026,9797,7082,7599,7390,7150,7286,7079,7293,3884,7083,7281,4752,7124,7297,8051,7256,8059,7265,8070,8084,8206,7283,7283,3647,8359,8359,8765,964,964,8409,52,52,52,7890,8867,4234,6533,8556,4432,6532,8361,5732,6223,4224,8323,501,8324,8596,1536,8325,8404,7570,6751,7568,7762,8249,8248,8322,8245,8318,5235,8246,8683,8317,8323,320,8319,8247,640,8597,7293,7087,7104,7269,7279,7108,7273,7116,7281,7119,7276,7154,7244,7289,6925,7703,7262,8395,7654,7071,7241,7241,8644,8576,8402,7599,7599,8400,1557,6388,6191,7106,8404,8401,7152,8576,6191,6151,8268,8085,9308,8407,8782,8782,9593,7666,7659,6928,9734,7655,9441,9441,9441,6656,6656,7268,9816,11060,8439,7263,7116,7278,7108,7092,7093,7084,7276,7282,7290,7247,7089,7086,7081,7117,7291,7102,7273,7076,7075,7249,7095,7245,7077,7272,7264,7281,7279,7119,7241,7108,7125,7112,7117,7271,7280,7262,7292,7121,7293,8060,7071,7278,7152,7247,8044,8066,7268,7106,8065,8069,7984,8051,8081,8071,7086,7125,7070,7672,7244,8381,8046,7106,7281,8268,7084,8084,7089,7082,8400,7292,7088,7241,7280,7971,7092,8401,7943,7280,8201,7118,7295,7100,7294,7082,7075,7076,7665,7647,7666,7109,7266,7124,7647,7122,7094,7092,7155,8063,7246,7281,6832,446,7151,51,6178,8084,7083,8402,8212,7928,8042,7250,8404,8569,4178,8706,8408,7251,8576,8403,8208,8361,8083,8576,7671,8407,8365,8818,7270,7153,8228,8942,7277,8939,8939,8832,8832,8782,1257,9189,8412,9138,7072,3897,3893,3883,7270,3885,3884,3895,7655,3882,3888,7094,7123,6740,3896,7987,7903,7088,8063,1770,1765,1771,1767,1769,1766,2183,4936,4944,4945,4941,4940,4943,4942,4939,4938,6644,6644,8081,539,8080,8384,8478,8288,7840,529,6493,7879,3894,7672,8273,7903,7019,7663,4801,8361,8306,4801,8306,8358,6971,2876,3828,8343,8602,8601,7293,6075,8547,3264,8389,7080,1126,7985,4454,3557,8526,6645,528,545,7079,531,544,1461,553,8401,8793,546,524,4512,4046,344,215,4316,4046,4316,4316,4046,5298,3913,6710,7253,7254,233,6809,8401,7089,8438,8213,8909,8213,8909,8213,8909,9055,9794,9741,9054,6104,9726,9358,9829,9880,9361,3511,3510,3511,3510,3511,3510,7252,9608,9594,5576,9610,2869,9611,834,8229,9609,8832,3510,2473,2530,7662,7906,7663,8071,8113,8439,7666,7266,8167,8164,8206,6796,4716,6728,7661,7642,7662,7286,8461,8363,7287,1250,8712,7096,8408,6596,8386,7082,7109,7075,8412,8208,7294,8052,8767,8251,8721,8741,7647,7644,8891,8892,8950,8471,8832,8768,7290,7986,7125,7152,9148,3564,7107,8439,8406,6908,7280,7079,1983,8129,9620,9189,9141,7241,7088,8283,9076,8386,6961,9729,8365,9492,9730,9481,4029,9537,7124,7107,8517,1029,8306,6785,8151,7143,2729,8721,4983,8389,6155,7287,7089,7285,8399,8206,8447,8446,7268,8444,7766,7672,7668,6123,6633,7112,8361,8141,8050,7273,9297,7835,9422,7834,8362,8639,36,8741,8200,8055,9543,9275,7261,7096,7287,8640,8207,7245,7574,8059,7984,7941,7939,7940,7943,8061,8066,8253,9719,8475,7666,8643,8419,8202,8722,8427,10056,9444,7085,7249,8469,8086,8792,10008,9959,8431,8426,10089,10090,8468,10087,7585,10190,6821,6205,6907,8071,8741,8737,9658,6133,10002,7792,10088,10808,10815,126,10786,10777,9199,10855,10864,10836,10870,10876,10875,10807,7008,7785,3440,11095,11131,10583,10584,10494,10011,10854,7150,7499,7291,7975,7122,7154,7107,8033,8228,7247,7654,7100,7967,7155,6718,7298,7906,8205,7106,7103,7251,8361,8580,7297,8208,389,7270,8381,5936,7674,7967,7294,7079,8203,8828,8407,9049,7096,9158,8047,7266,8207,8203,7642,8413,9141,8980,8879,8981,8982,8983,8498,7704,9146,9882,9794,9892,6744,6749,6751,8410,6746,6386,9176,9762,8581,9177,10097,10098,9821,10189,10095,10078,9733,9088,6854,3894,3893,8784,387,392,6082,372,365,8530,8529,8201,6076,9217,4305,10161,5995,7913,10263,10213,8882,8788,8786,8451,8280,8091,3395,7890,6170,6364,1209,4535,4251,3148,2946,6209,7775,4724,1385,2521,8027,9118,223,9299,9234,4774,3783,156,5245,6788,1324,2266,9557,9741,7245,8400,9978,9652,7022,7244,7107,7122,8402,7647,7647,8208,8737,7668,7669,8201,7293,8058,9401,8080,7080,9580,8424,8424,9160,9444,7154,8415,8743,9445,9400,9443,10075,9293,9660,10185,8477,8417,8414,8236,8236,8547,8547,8438,8438,9308,9258,9366,9366,5636,114,114,6857,9347,9347,9554,9533,9675,8514,8514,6004,6004,1345,8175,6715,5269,7875,7876,9900,9952,9945,8306,9386,9320,9320,9942,3885,1766,3882,6354,3073,3071,7751,4512,3070,6689,8244,7752,5298,7752,8241,7072,8246,8311,8682,7636,1368,507,8704,1257,7238,8174,7580,7881,272,6204,8306,446,1215,5995,5732,7837,9037,1165,7835,2023,8598,8840,8319,640,8247,8441,8407,8439,8404,9138,9297,9187,8400,8568,9795,8794,8410,9564,8413,8782,8782,8451,8577,8208,7836,9372,8329,1347,608,1253,4258,9937,7920,10232,10243,8402,10095,8580,9560,10401,8450,9313,8407,7287,7121,8211,7110,8084,8087,7096,8047,8366,8063,7084,7658,7268,7655,8080,7714,8065,8452,8652,7659,8456,8998,8068,8268,8713,8064,8401,9560,7273,8891,8892,8393,8378,7670,9053,9594,8058,8362,8049,8050,8406,8201,8640,7674,8373,7662,8641,8476,8430,8766,8443,9564,9738,8712,9740,8428,8570,8646,9508,9741,9442,8737,9562,10025,8467,7665,7266,7122,8081,8593,8826,7188,7176,7162,8731,8245,8241,9292,8083,8742,8658,9056,9158,8794,9457,8418,8419,9057,9530,9580,9844,9874,9028,9679,6688,9749,9383,8945,9665,9676,9748,9744,7241,8450,6806,9933,7815,7247,6898,9821,8409,8438,9353,8760,9607,1110,802,9957,9453,9577,10065,772,743,141,9133,9621,9813,9372,9259,8240,9611,9302,9878,7920,7935,8412,7281,7051,9622,9132,9563,5821,5756,9402,9910,2294,9937,4056,608,5545,5339,9205,3080,2933,10405,10209,8207,1699,10374,8999,10373,10376,7839,8450,8451,10343,9352,8782,6852,9530,10623,7665,10568,10534,10109,8240,9747,10642,8361,8210,7091,8287,7289,7289,8073,8206,8078,7154,8368,8288,8288,323,964,8268,5548,5548,8544,1296,6392,3864,8236,9739,9739,9286,1624,9659,9057,9508,8462,8928,8081,9286,9995,9441,9560,10449,9082,8444,7113,8459,9998,8794,8438,8207,8571,9370,10030,8740,8424,9530,8468,8427,10007,8086,7080,8063,8426,8720,7574,8205,10888,10075,9813,8368,8211,9292,10211,9583,9659,10008,7659,7971,7984,8395,9259,8455,8477,4094,6787,4095,1385,7350,7350,7350,7350,7350,1887,7539,7539,7539,7539,7539,7539,7539,7539,7539,7539,7419,7419,7419,5898,5898,5439,7095,4503,4503,4503,7388,7388,1307,1307,9442,9189,9508,9508,9508,7541,7541,7541,7747,9995,9508,9978,10272,9659,8449,10024,8892,8468,8892,8468,10026,9189,8386,8783,10890,8783,10614,9229,5988,9581,10575,9649,10357,11187,10890,11712,10890,11712,10400,11711,10400,11711,8063,8404,8403,8403,8407,788,8567,7286,7075,8576,8236,8236,8709,8406,7086,7109,8065,8408,8408,8408,8408,8408,8408,9719,9205,9225) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC