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,867,6967,5188,6969,1153,5996,6947,5484,7022,906,5576,3698,1973,587,5435,6613,1828,8491,6174,8296,2925,7634,4834,8142,8617,1993,1993,7840,7879,7840,7879,6728,587,6728,587,8683,1308,8683,1308,6770,9403,7048,7847,3926,450,2627,3949,2628,4178,8565,8831,4716,9865,4716,9865,3913,6869,3913,6869,3913,6869,576,5484,7159,5098,1726,4923,9856,1307,9488,10301,8650,8130,10316,8130,10316,226,4923,11101,11215,11101,11215,11497,10579,5435,10731,5435,10731,2594,4234,5371,3702,501,9030,3989,5148,6740,7238,8220,7975,1371,7143,7833,7903,5995,9614,5322,5070,4796,766,7019,8948,10148,10173,9300,10187,10146,10056,9378,10526,10892,10836,10964,8435,11121,11027,2253,4791,11089,10149,5853,11018,11101,5567,10491,1993,11733,11690,10716,8438,11788,10228,11497,11028,10934,1988,582,10846,1988,9734,9735,10613,11311,8243,11318,11625,8302,11617,8563,10326,10327,11326) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC