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 '/btn where uid='btn_list_reply.gif'' at line 1
select passwd,bbs_level,bbs_d_id,cell,wdate,st from img/btn where uid='btn_list_reply.gif'