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,4100,4513,6595,1872,6102,566,7138,2590,5544,7833,4131,2658,4983,7156,6635,2261,7016,8031,4220,2393,617,8442,7250,7250,7840,2761,7064,675,1487,3392,3803,5094,7069,8902,8900,8514,3957,4872,9036,4349,7998,7654,8175,4510,3715,9220,9214,7985,2393,9278,9279,9049,6154,9258,9258,7563,7563,9406,9377,9444,9444,9527,9363,5545,7655,7655,7655,6774,6774,9614,6686,9730,9258,9800,9656,4800,4405,8134,4432,8629,8089,2023,7920,8543,5222,28,7038,9086,7865,7864,8902,7858,8919,9270,7855,8808,2698,3844,2705,1915,6792,6635,3540,5636,9363,5210,8837,6686,9353,5142,9638,9454,2261,8925,7016,3625,1520,3542,7614,1917,5623,5435,7582,7138,7222,7156,9928,6661,9937,9913,9668,9780,9456,6661,463,9928,7709,944,10085,9983,10528,766,7019,7761,8222,4635,10228,9463,8793,4178,5148,9897,9195,4796,9892,9552,5995,2033,9925,2605,9987,10044,10894,11238,6740,979,10877,2932,9942,7238,10432,735,6146,10466,3029,145,11069,7610,10988,8512,11071,8109,7840,7299,7879,6800,9363,10002,7878,8002,9354,6986,9321,11068,9900,6971,11067,10893,10064,1762,10520,10892,11460,9366,5210,9752,10474,10368,9249,1536,10050) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC