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