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,3850,6158,4121,666,4338,6335,2594,1070,4185,1520,5995,233,6010,5252,1380,2263,4218,5915,461,2261,4597,714,6001,6130,6589,6155,220,1038,1453,6162,6588,5996,2576,4218,1181,5091,8143,6122,7995,6941,7840,7787,7879,6726,7548,8032,6971,5362,5362,1313,8093,9078,9047,9092,9074,9085,7795,8903,8526,8836,8230,1181,9321,1057,396,8093,9420,9386,9990,7130,9916,1645,525,550,601,933,1589,2390,1070,3264,5848,3557,3828,808,3302,5305,5552,2876,4218,529,3610,3392,4454,3048,3803,1928,1927,6950,6122,5915,713,5256,6725,3754,663,1200,1313,358,6169,6162,2576,6588,6590,1000,1453,725,6159,3216,6645,6168,510,1250,6160,4512,2997,2873,2170,4038,2723,2934,1444,2573,6772,3850,6660,6794,6189,1738,5877,6971,7240,3277,1057,6145,2530,3131,3754,6563,6596,2477,2571,4834,4769,6578,6727,1707,4422,9112,8873,4437,863,9111,8872,9113,4860,8649,8872,9049,4920,470,645,4008,6564,6565,6572,6575,1461,1593,6562,3797,4165,1092,744,6568,3645,7063,6998,467,7119,7095,4164,1600,6521,4423,7089,7093,4964,6527,1474,7121,6522,1098,6504,6735,7115,6576,7115,6902,7125,7029,6503,6901,7047,6523,6996,7223,7235,7001,7029,1460,2456,7233,6675,3418,7013,652,2917,2696,7112,2956,1425,7249,7276,341,3447,943,1869,7231,3760,2446,3454,7234,2456,2454,3610,1893,1765,944,7034,2151,1829,7089,2974,6588,7272,7271,6168,7272,7271,7273,3417,7296,2334,6530,2671,7280,2653,5371,6365,7241,6676,7258,6993,2876,7057,7106,397,4021,6678,6726,6518,6512,6371,726,6528,6530,6529,6531,7691,7689,4305,860,7692,650,7686,7699,7681,4224,6530,313,810,7753,272,7275,5066,7844,3784,7661,7670,7602,7662,7108,7084,7265,7268,7170,7168,7599,1771,1767,1207,1769,1765,1768,6669,6189,3216,435,344,5572,6645,228,1145,5839,6540,6122,6544,6172,6257,1425,1210,5777,3825,501,2594,5459,3302,933,4079,463,5305,7850,3428,6544,6971,501,766,4860,7240,4796,3217,4861,3264,2164,8390,2632,8306,3989,6167,4454,8781,6740,319,5995,7238,6365,6660,4936,7878,6982,7795,7787,1200,7718,5915,2183,6983,3892,7592,7837,7546,6725,7143,1603,947,8095,7992,6589,933,3519,7869,7995,8096,7938,6172,6159,8223,7240,6605,8093,8271,8226,8611,8555,3046,6135,8220,6766,1200,7882,1110,447,1277,6852,2654,6643,5552,2576,1313,2685,463,3825,231,4982,3217,2876,3447,5735,2518,1277,7003,802,2698,6999,1915,5371,4219,6990,7051,2469,5631,2592,6562,2685,7222,7221,1822,943,6397,341,3778,1829,3181,6993,3843,4126,396,6122,2590,7304,3195,6172,1568,308,1127,6590,1453,6104,1647,2299,6950,1432,7858,3447,7784,7865,7803,6998,7864,6853,836,6793,6001,6942,1313,2390,7991,1200,5339,6677,231,1228,3610,6856,3657,3863,5903,358,6349,834,924,7104,7122,6947,713,2573,5927,3549,3549,7920,7920,7920,6562,3216,7812,5371,7995,358,2029,8020,2328,6871,8093,6589,5915,6695,8390,8281,6122,6971,6766,7795,7158,7869,5956,2573,6812,7903,8230,8296,7240,6971,8781,8009,9010,8305,1453,3549,8019,9047,9063,8526,7910,4454,6809,9321,3409,7107,2843,6483,314,3874,314,7078,6984,8145,3860,4224,2520,7100,5066,6658,7289,7816,7816,5897,5996,5996,2992,1537,3172,7783,4597,8683,8161,2632,1250,7548,7548,4801,4801,8820,7160,8223,8526,8547,8815,7840,7240,6169,7879,7878,8850,6941,1453,9030,9063,8545,9047,6168,6001,1453,9185,9047,9321,8535,4701,8933,8816,2473,6809,5995,9060,9075,6159,8230,9167,6312,6954,8479,4362,3523,4860,9389,4801,9879,9386,4639,8306,10346,10698,1973,10716,1993,10681) ORDER BY , is_available DESC,(total_rating/no_of_ratings) DESC,title ASC,publisher ASC,active DESC,author ASC