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