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