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,1366,7089,7111,7674,3860,6644,7112,8040,8082,7069,7069,8407,8407,1666,1265,8268,8268,7661,7501,7501,323,9856,7385,7385,7385,10077,9897,2520,7146,1983,6175,6728,8020,8020,1767,4916,6195,6658,6175,2006,7390,7046,7046,8832,8832,8832,7104,7459,7459,7449,7422,7422,6547,6547,7537,7537,7503,1210,1116,964,5777,4652,4209,8195,1089,1089,8205,3162,7981,7981,7981,8442,8442,435,5143,7020,7020,7020,6687,6174,6740,7238,7472,8220,4769,7840,6003,7879,7878,7592,3913,7554,7754,7755,7756,8509,7539,446,7927,2041,9359,6316,7659,8477,9660,9813,9313,10075,10074,10011,10011,10056,10056,41,9650,8182,8390,10526,8401,8859,10702,7444,10480,10496,10614,10859,10615,10789,11668,7421,7420,7416,7389,7388,7387,7528,7412,7541) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC