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 df.published=1 and (fe.showed in(2,3) or (fe.showed =-1 and df.showed in' at line 3