[BUGFIX] Fix sql error in EXT:linkvalidator