view_table_by_query select * from `tbloaitin` where loaitin_id in () order by loaitin_bac 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 loaitin_bac' at line 1