Erro no banco de dados You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND e.status = 1 AND s.status = 1' at line 1SELECT e.* FROM tbeditoria e INNER JOIN tbsubeditoria s ON s.editoria_id = e.id WHERE s.id = AND e.status = 1 AND s.status = 1