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,6774,2029,6547,223,6795,6562,6575,1016,7110,7125,7087,7086,7088,7117,7123,7101,7116,7124,7079,7153,7069,7121,7258,7249,7106,7276,7074,7096,6712,7252,7247,7253,7084,7278,7272,7291,7096,7247,7275,7091,933,3302,7840,7878,7241,8056,5305,8070,7879,7937,7254,3860,7279,8055,7147,7289,7245,3698,7238,6740,7943,7913,7238,7097,7572,4216,2399,7280,7263,7992,6559,8386,7270,3550,906,7932,3380,8670,6832,8471,8408,8087,714,8770,8053,8681,8736,7106,8698,8045,5098,6239,5435,6819,1616,2024,3384,8063,8473,3385,4555,8439,9578,7654,8402,56,5995,2157,6575,6855,2029,6768,714,6768,7140,7144,6367,1537,7304,850,2024,445,587,317,6003,7118,7246,4923,3864,7915,8349,7245,7286,7666,7806,8614,1782,8745,2712,3073,8951,2522,5995,7164,9078,7833,9244,8048,6971,9055,9055,7976,1349,8146,9614,9541,9600,9327,9942,8900,10026,9220,10076,9134,9054,435,10614,10479,10319,10778,1656,545,6382,6390,6527,6521,6261,7631,6212,726,510,542,528,512,6869,7770,3515,6513,526,6198,2696,6498,4614,6497,6199,6223,4289,4293,4286,4282,6197,4292,4291,532,4290,842,5903,6546,1266,1165,6359,864,3247,1685,1616,3384,540,5066,3380,543,8244,8249,7189,7184,6042,7180,6201,3581,6656,6652,3879,6653,6223,6218,7176,1245,7179,7187,5332,714,4426,2917,5096,4490,7170,7172,510,7598,7596,7637,7636,8278,549,7188,8599,8329,8246,8328,8342,548,8597,8598,8320,8317,5635,4386,8337,6654,6010,7869,8109,6844,501,1461,2658,6726,223,8358,6190,3337,8485,6740,7238,8220,8514,4061,6690,8659,4401,322,1591,1070,4983,2145,3850,7546,2933,7904,6768,1917,2546,8512,6004,2169,1242,7761,6700,8613,4435,8255,6801,8544,6316,6631,4979,6715,5568,8217,3598,915,8292,7912,5681,7711,6774,7175,8483,8547,8151,8019,7774,4983,6891,6715,3428,2849,6691,3549,2467,7773,1016,470,421,4535,1593,4423,3797,3728,6131,8810,754,3728,6618,2830,8773,6832,6536,8887,6536,8887,1511,2989,4898,7982,1765,1771,8443,9719,7646,7103,7262,9513,9563,7654,7250,9370,8716,9564,8450,8365,7294,8395,8449,9797,7288,7082,9745,9259,9581,8569,7666,9205,8404,10026,9622,7266,9573,9561,8891,8451,3327,7048,7671,9304,10258,10272,9880,9492,8,9189,9957,10303,10312,4639,10721,10279,10228,6700,11265,6616,8941,8942,2122,207,8497,8497,9476,9476,6613,3070,8292,8292,6615,10281,10281,6550,6579,11364,10324,7870,8700,9432,867,10323,5402,9920,10333,8828,7610,1770,10565,9920,10326,9863,6011,9735,10336,10139,10731,9067,9880,1768,11049,10328,10686,9004,8231,8941,8941,4362,4362,4362,10065,10065,2342,2005,7238,10056,4544,2324,8498,11069,6800,8002,8860,7416,7503,6740,11099,11328,11366,11289,7048,10687,9946,5988,10687,10481,10677,11400,11497,10304,6367,10678,906,4401,906,9603,10676,11403,8970,4144,4923,10940,11263,11432,10703,11799,11637,10717,10522,5134,721,10682,6642,11399,11024,6689,11121,11497,2009,11022,9858,6800,9681,10687,11701,11728,10106,11836,11723,8727) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC