What are common syntax errors to watch out for when creating MySQL tables in PHP?

One common syntax error when creating MySQL tables in PHP is forgetting to include the data type for each column. Make sure to specify the data type for each column to avoid errors. Another common mistake is using reserved words as column names, which can be resolved by using backticks around the column names.

$sql = "CREATE TABLE users (
    id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
    username VARCHAR(30) NOT NULL,
    email VARCHAR(50) NOT NULL,
    password VARCHAR(255) NOT NULL
)";