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