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,6633,358,6891,7143,5915,6102,7146,7144,7238,6947,7130,5912,5421,4154,6364,6863,5331,6831,3428,4983,698,4765,6712,7127,7239,3647,7773,7781,7751,6348,3346,3728,7592,6687,7554,7754,7755,7756,7068,7761,7840,7879,8222,7878,7910,5997,7363,7288,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,952,1092,3856,665,2331,7994,2913,3719,7956,3893,8135,5889,3878,4087,7287,4652,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,5371,2467,3549,6588,7938,8185,217,7995,8182,7837,7834,7835,7836,7992,3850,8019,6979,5334,8093,6780,8305,8441,8222,3520,6712,8489,3131,8541,8555,2506,7869,4765,8019,7840,7879,7878,6971,8597,8982,6789,8164,8981,7160,8983,8980,5995,8306,1257,51,7702,714,2605,9114,6749,1145,9119,8342,6751,8267,8341,8988,8339,8879,4796,8357,8549,8586) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC