What PHP Code inspection highlights SQL code in PHP functions that are using MySQL aliases that are not defined?

Hello, a fellow developer notified me there was an issue with my query as it contained a typo in the alias it was joining on, and provided the screenshot below as evidence from PHPStorm.

I looked at the same query in my PHPStorm, but I did not get the same code inspection:

What code inspection highlights aliases in MySQL queries inside PHP functions as the red warnings? I look at everything under Settings > Editor > Inspections for anything “query” or “SQL”, but nothing there particularly jumps up to me.

Thanks in advance!

1 comment


Apparently, the error on your screenshot is “Unable to resolve symbol”, like here:

Is there any chance that your colleague does not have the same Data Source configured?



Please sign in to leave a comment.