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