How can using backticks in SQL queries cause unexpected errors in PHP code?

Using backticks in SQL queries can cause unexpected errors in PHP code because PHP uses backticks for shell execution. This can lead to SQL queries being interpreted as shell commands, resulting in syntax errors or security vulnerabilities. To solve this issue, you can use double quotes or single quotes to encapsulate SQL queries instead of backticks.

$sql = "SELECT * FROM table_name WHERE column_name = 'value'";
$result = mysqli_query($connection, $sql);