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