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 active != 'disable' AND upcoming != 'yes'' at line 2

SELECT * FROM archive_media1 WHERE id_tag=1207/) AND active != 'disable' AND upcoming != 'yes'