syntax error: SELECT photo,name_vi,name_en FROM table_slider where hienthi = 1 and name_vi = ORDER BY stt asc 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 'ORDER BY stt asc' at line 1