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