Interesting. I use joins in queries, and the table alias works fine, but I haven’t used a variable for the alias, just a hand-entered string. Maybe it’s the backslashes that don’t work for aliases. I wonder if you make the alias by grabbing the text after the last backslash [ $tableAlias = substr($classKey, (strrpos($classKey, '\\') + 1)); ], so that you end up with “Offenders” for your alias, if that would work.
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.