SQL Error:
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 'and a_ref_type = 'news' order by a_sort_id' at line 1
select * from attachment where a_ref_id
= and a_ref_type
= 'news' order by a_sort_id