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 ') ORDER BY order_img' at line 1
SELECT id_img, alt_se_img as alt FROM properties_images WHERE property_img = '' AND id_img NOT IN() ORDER BY order_img