Error: 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 'THEN 2 WHEN state in ('已出售', '已出租', '已過期') THEN 1 ELSE' at line 16