SQLSTATE[42000]: Syntax error or access violation: 1064 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 'AND  listing_area NOT REGEXP '^340|^341|^343|^344|^345|^346|^347'   AND  list...' at line 1
SELECT * FROM master_rets_table WHERE  postal_code =    AND  listing_area NOT REGEXP '^340|^341|^343|^344|^345|^346|^347'   AND  listing_id <> 678695    ORDER BY `listing_price` DESC