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