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,6396,1084,1086,1085,5495,714,5495,2729,1609,987,7132,5185,6533,990,4346,7020,7636,6589,7636,6750,2018,7580,4563,7972,7973,6201,3380,6098,8098,8093,7273,8302,7639,2006,6843,6445,3521,7105,8199,8047,7895,8413,8514,9055,9132,3647,9206,8475,3169,9195,4796,8224,9900,9935,9879,9630,9945,2736,10547,10026,1993,10765,7976,10881,8053,7152,9134,9204,11798,11609,10466,11410,2171,987,987,6727,1462,6820,993,4918,6578,226,520,7966,3863,1981,1296,1296,2041,1462,1981,5769,7849,1988,7640,1662,7903,3169,2573,4395,8230,9386,9936,6954,9295,7238,6740,7903,1609,6623,8225,4598,969,7143,6172,1586,5371,6714,6971,788,1085,8759,8611,1084,1085,1086,8763,5495,842,8757,7841,5914,3913,226,217,6806,3169,6195,6003,2079,6715,4248,7905,2643,6618,1609,3402,2555,6619,4918,226,1662,8389,8434,9422,8449,445,7961,6592,9547,8019,7912,6879,6000,9042,8178,7897,7846,1563,7846,9759,9889,4338,7921,9879,9754,4432,6368,7897,8015,6584,6843,3823,3702,3702,4683,4683,4684,4684,7903,7953,7953,8,4769,8542,7027,5691,8489,4405,7846,8110,1967,9985,9031,5810,6700,6700,6700,6715,10637,10713,11375,9232,7249,7019,3712,9370,8045,11306,10907,9589,4791,11337,9855,10587,10614,1084,11336,3389,11486,11101,10301,11226,867,10884,9842,26,4918,11298,1511) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC