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,6204,4146,7089,553,7297,547,7107,535,545,546,547,548,549,3714,2997,524,542,6569,536,536,6100,5914,8372,7102,8055,8055,7083,7270,7270,2873,8408,8832,8832,526,2447,9632,7664,9107,9973,8363,8081,9082,10025,8185,2374,2182,6631,7304,1666,7897,1357,7388,7480,7409,7078,1983,6618,3337,840,7546,1145,1250,7020,6810,947,4558,964,6778,783,1089,6561,7496,6235,7409,7389,7451,6810,4558,964,8436,6561,7496,3066,8111,7127,6810,8864,8864,8762,2182,2182,9195,9552,9925,1645,1645,1645,1645,2658,8814,8730,8681,8698,7752,7753,8627,8088,4316,9349,8706,10236,8512,9525,8435,1765,1770,3029,8109,3511,3511,3511,3511,7388,3860,9021,7496,7454,7444,7390,7538) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC