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