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,549,6204,377,3882,3896,382,537,384,6082,393,539,546,548,536,525,5995,2491,3069,2658,6272,3384,5295,4795,1656,3385,2491,3401,5717,5175,6118,6103,3184,2998,2696,6453,5996,6474,6472,6460,6465,6475,6740,2876,6468,222,156,6800,6390,6873,7104,2946,2453,7639,7938,7595,665,8281,7239,5545,7773,6493,8558,7674,7846,8724,8700,6498,8740,8682,8583,7840,9109,9054,8240,435,8913,9249,9249,3850,7647,9529,9619,5512,8953,8953,6004,6000,3878,7849,5024,5717,2447,6667,6584,3838,7912,779,810,578,730,4639,645,4405,6809,6845,6104,6805,2615,4659,1603,5484,5904,7146,6979,4774,5116,7303,1764,1460,6687,3492,5276,7144,3797,4854,4316,4964,423,5298,5003,7756,1272,510,4985,6953,1831,7882,7874,4512,2989,5400,470,5763,3358,6559,7981,7988,1092,3856,665,2331,7994,2913,3719,7956,3893,8135,5889,3878,4087,7287,4652,1184,3136,5995,7807,5332,7937,6732,7971,549,5965,4616,3824,8483,8484,6560,3169,5252,8257,4784,4830,8514,8573,8169,1872,8471,2024,6192,1349,7985,8305,2989,7251,3580,6255,6829,8713,6766,6588,6004,4355,5763,223,223,7946,7946,7599,1073,7110,7121,4199,6632,7674,6183,5947,4234,2522,8040,2706,7261,7024,737,2658,4405,2300,3236,3165,217,7147,501,9554,10733,10644,7772,510,11414,7493,7493,7493,5995,1250,5402,2627,1645,10116,9386,10056,9993,1215,10239,8358,10247,10238,10212,4121,1988,990,7135,8780,7134,10229,10836,10466,2261,10149,4778,4512,11022,10733,11646,501,28,9031,5609,10818,11644,9985,7610,11792,840,10909,4405,4405,10904,2253,4752,207,11298,11227,11227,11727) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC