This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The PHP editor is smart enough to realise that there is SQL in the file, allowing it to autocomplete the SQL language, but its not smart enough to support highlighting the SQL code. This type of feature is similar to highlighting javascript in a PHP file, and although its harder to recognise that the code is SQL without parsing it first, other IDE's like PHP Storm support this feature.
*** Bug 258820 has been marked as a duplicate of this bug. ***