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