SELECT SQL_CALC_FOUND_ROWS pd157.*, IF(pd157.price>0,1,0) AS flag_price FROM pd157 WHERE (pd157.approved=1) AND (pd157.published=1) GROUP BY pd157.crkp_id ORDER BY flag_price DESC, , 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 ' LIMIT 10' at line 1
รถมอเตอร์ไซค์ใหม่ ทุกยี่ห้อ-รุ่น ราคา-สเปค-โปรโมชั่น เรียงตามปี-ราคา หน้าละ 10 รายการ | เช็คราคา.คอม