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,808,6769,6809,6710,1345,6644,6645,550,3184,5996,3131,6381,3561,3580,3554,4140,736,1523,7574,1349,1311,6120,6157,6175,6767,726,7962,8024,7304,4985,6818,4923,8361,8199,8762,4302,5733,8434,9037,8629,8049,9134,9055,7903,7445,7146,1983,7871,6175,6728,8020,8020,1767,6195,6658,6175,2006,7390,7046,7046,8832,8832,8832,4639,9950,9904,9993,9904,9993,4801,8290,9951,9678,223,9220,1770,1765,9835,1771,8628,1767,8358,1767,8358,10042,2456,8815,1768,8815,1768,8628,1766,8628,1766,9295,8912,9811,9454,7160,4860,8826,11497,6549,10898,1726,10370,11482) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC