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='2c3f758027ac086b7998c503f339cfa0'' at line 1