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 list_id = 0' at line 1[SELECT full_name, email, address1, city, state, zip, phone FROM web_registration_configurations WHERE user_id= AND list_id = 0]