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