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