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='d351e1549d503dd5c5d1e1772a863ae0'' at line 1