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 `id_media` LIMIT 11' at line 5

SELECT * FROM (`tm_media`) WHERE `id_propiedad` = '841436' AND `id_media` <> ORDER BY `id_media` LIMIT 11