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