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