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,233,2035,245,254,1005,1209,842,1993,7920,7149,8220,8440,8514,8483,8547,6911,3888,3892,9220,9300,9258,9298,2265,9354,8183,9030,2849,6842,5222,5331,6842,8683,737,377,551,9322,6402,7104,7975,8064,7290,7290,8639,8791,8568,8568,1151,778,8292,8292,8292,6767,6813,7084,8047,3874,7828,1029,6940,1807,4130,4570,1371,7607,7872,8762,4860,36,7576,7711,30,9787,9093,9949,9949,9949,7812,7812,7812,24,6157,10532,24,10719,5996,3860,1767,1767,1767,1767,1343,7013,7013,7304,665,8366,7890,7576,7884,1537,10211,6984,314,7917,9306,8839,8767,9995,7649,8209,8768,6717,10301,6586,10730,226,3402) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC