What is the common SQL syntax error shown in the PHP code provided?

The common SQL syntax error shown in the PHP code is the incorrect use of single quotes around the table name in the SQL query. To solve this issue, the table name should be enclosed in backticks (`) instead of single quotes.

// Incorrect SQL query with single quotes around table name
$sql = "SELECT * FROM 'users'";

// Corrected SQL query with backticks around table name
$sql = "SELECT * FROM `users`";