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