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 basketSession='495495195b445a5bbf3657d9b2dc2943'' at line 1