LinkType = <id> search was switched from LocalX to X columns

It was side effect of 5075951855fe6bfb4f3698386a1a3d4827f25259
change.
Merge branch '4.0/restore-SQL-for-search-by-id-of-link' into 4.0-trunk