A Database Error Occurred
Error Number: 1064
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 'ORDER BY rel_biblioteca_id ASC' at line 11
SELECT arquivo.*, relacionamento.biblioteca_id as rel_biblioteca_id, relacionamento.id as rel_id, relacionamento.local as rel_local FROM arquivo INNER JOIN relacionamento on relacionamento.arquivo_id = arquivo.id AND relacionamento.biblioteca_id = ORDER BY rel_biblioteca_id ASC