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