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