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