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,524,525,526,548,539,537,528,544,541,531,538,4437,5770,5068,6844,1462,543,553,6042,536,542,7046,6740,3863,3864,6212,6212,8207,8207,6539,7713,7713,8034,8034,553,3891,524,542,533,3890,3890,6493,8383,8207,8395,7840,8109,7879,7879,7878,7878,6726,501,3989,8947,9055,7115,1371,8047,9032,5148,8770,8770,9134,9321,8048,9186,6842,391,6066,384,377,6082,382,374,544,528,539,548,525,549,272,6381,6066,393,386,6082,6742,6796,6204,6220,6533,4146,372,375,673,6750,6751,6744,6749,6745,365,6270,387,378,376,389,6076,381,368,388,388,391,6066,384,386,6082,6082,390,6750,6751,6751,863,3882,6197,5371,6103,4046,4199,435,528,5995,544,525,539,524,537,5148,2992,7108,538,3881,3896,3887,3883,6493,539,544,541,528,529,550,554,540,4716,6740,540,529,528,538,539,553,526,531,525,544,524,537,532,542,543,554,533,551,2324,536,9016,7251,9543,9543,6792,5629,5175,2246,1586,1196,4599,3189,6858,6947,5266,739,7138,6708,5636,1487,504,834,2841,6732,5215,1196,405,360,529,546,547,7138,545,7883,2933,608,2294,3080,1347,542,535,1215,536,548,539,4769,531,538,532,2520,156,156,537,5262,7390,7238,7671,7647,3875,6163,6163,6809,553,547,524,6042,529,549,533,531,543,532,545,528,550,548,526,7104,7104,6539,550,537,544,541,542,542,535,535,7987,7987,3885,7143,7143,538,546,529,6621,543,533,544,7833,547,520,7976,541,528,6042,531,532,536,6646,7966,6610,550,7815,4607,4906,524,553,4716,540,1726,6394,8081,8080,7270,546,525,9132,9132,548,8917,8447,7576,7576,7576,10169,8222,543,528,545,532,551,541,6042,548,549,8289,525,4639,533,550,2573,545,9001,8028,8289,1645,3647,2992,6817,6366,2467,7795,2117,8027,7986,6870,7987,8272,553,524,526,545,540,536,528,543,544,551,537,533,550,6042,541,548,549,538,535,546,539,547,531,529,532,542,525,3893,543,528,538,8425,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,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,101,222,5419,6011,1537,6362,550,6158,6774,6154,6559,5882,6691,5995,2709,6746,6743,7159,6177,6983,801,5175,969,7938,6380,6381,7756,7659,4390,8231,6926,1886,7546,8584,6008,8681,8698,6933,8817,8910,8156,8514,551,3893,3889,7299,9195,546,979,380,863,528,532,9,542,553,539,538,525,8761,3884,3875,6359,3892,3891,5602,543,2328,6493,8272,6593,3893,10638,3896,10645,10637,3887,524,10647,6042,9137,3891,544,3894,10646,6042,526,553,541,539,7772,510,1765,7770,524,551,532,528,7771,1769,6876,533,512,511,9792,7772,7580,7637,546,9911,7638,6100,7596,9147,9155,9150,9154,9156,9231,548,529,9145,9144,9146,9151,9190,9217,9192,3719,9143,8583,8598,7985,8307,553,7300,539,9183,532,545,8002,547,9410,9412,9416,9414,6354,1524,7705,524,3892,3893,3895,3890,6396,860,8917,382,3883,368,6742,6985,735,3896,528,542,546,8274,4580,1765,6521,6220,6521,6220,6521,6220,3894,6200,735,2951,9378,4405,6441,554,7300,3073,9418,7024,8627,8088,6688,3883,3884,10228,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,543,529,538,6493,547,6042,3896,8272,8667,8651,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,10228,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,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,11846,11686,11890,10702,11211,11772,7127,10664,8764,1766,10291,10292) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC