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,5148,4234,4121,4121,6571,5719,2706,735,1257,6152,6151,3359,4305,6596,261,314,3074,3702,5996,3334,7722,7938,1811,1831,567,8250,7992,1783,8316,3883,8411,8732,2520,4296,8892,546,9152,8683,8475,8627,9037,7666,9300,7174,8648,8948,7967,6575,6855,2029,6768,714,6768,6733,7140,7144,6367,1537,7304,850,2024,445,587,317,6003,7118,7246,4923,3864,8349,7245,7286,7666,7806,8614,1782,8745,2712,3073,8951,2522,5995,7164,9078,7833,9244,8048,6971,9055,9055,7976,1349,8146,9614,9541,9600,9327,9942,8900,10026,9220,10076,9134,9054,435,10614,10479,10319,10778) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC