Fix transitions segmentation issue

In some cases when trying to view transitions graph for page titles with segment defined (e.g. set segment to page title), user gets error "Exception No needed fields found in select expression. Please use a table prefix." Found out, that it's caused by lack of table name prefix for fields in query. This patch fixes this problem.