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 '' at line 1

SELECT b.url_file AS url, a.title FROM html AS a JOIN files AS b USING(cod_child) WHERE b.estatus_file>0 AND b.cod_child=