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