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 email="" AND form_type IN ('Single', 'Committee_Full', 'Committee_Partial')' at line 4: didn't work