How can the issue of using a reserved keyword like "check" in the SQL query be resolved in PHP?

Issue: When using a reserved keyword like "check" in an SQL query in PHP, it can cause syntax errors as the keyword is not treated as a regular identifier. To resolve this issue, you can wrap the reserved keyword in backticks (`) to treat it as an identifier. Example PHP code snippet:

$query = "SELECT * FROM table_name WHERE `check` = 'value'";