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