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