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