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