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