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,6174,6740,7238,7472,8220,4769,7840,6003,7879,7878,7592,3913,7554,7754,7755,7756,8509,7539,446,7927,7445,2041,6316,6402,6613,7725,6599,840,6367,6004,7708,9386,7105,9986,6367,7646,7217,1785,9618,10060,7251,7089,7743,7505,7723,10165,8289,10631,11010,7708,6131,1616,3247,10731,6426,6127,2324,10033,7592,7554,7754,3287,7754,5070,7756,7927,8509,4510,8162,2033,4234,3241,5134,9805,3327,1769,10938,11219,1768,6613,10985,11123,10002,10212,9830,11069,5484,11497,10339,1993,9866,4520,10301,7708,11329,7910,11497,10937,10687,11410,9393,9300,10579,11101,2749,5567,450,11497,10228,3863,9865,10836,10477,9488,173,11306,10669,9849,5769,10339,11710) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC