SELECT SQL_CALC_FOUND_ROWS pd44.*, IF((pd44.pricerange_eq IS NULL OR pd44.pricerange_eq=0) AND (pd44.pricerange_gt IS NULL OR pd44.pricerange_gt=0) AND (pd44.pricerange_lt IS NULL OR pd44.pricerange_lt=0), 1, 0) AS o2303_isnull, IF(pd44.pricerange_eq IS NULL, 0, pd44.pricerange_eq) + IF(pd44.pricerange_gt IS NULL, IF(pd44.pricerange_lt IS NULL, 0, pd44.pricerange_lt), IF(pd44.pricerange_lt IS NULL, pd44.pricerange_gt, pd44.pricerange_gt/2+pd44.pricerange_lt/2)) as o2303_average FROM pd44 WHERE (pd44.approved=1) AND (pd44.published=1) AND (pd44.account IN (101239,ASC) ) GROUP BY pd44.crkp_id ORDER BY o2303_isnull ASC, o2303_average DESC, pd44.soldout ASC LIMIT 10
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ASC) ) GROUP BY pd44.crkp_id ORDER BY o2303_isnull ASC, o2303_average DESC, ...' at line 1
บ้านล้านดารา เอสเตท เวนเจอร์ เรียงตามราคามากที่สุด หน้าละ 10 โครงการ | เช็คราคา.คอม