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