What is the common error message encountered when trying to add 2 points to a MySQL value in PHP?

When trying to add 2 points to a MySQL value in PHP, a common error message encountered is "Operand should contain 1 column(s)". This error occurs when the query is not properly structured to handle the addition operation on the MySQL value. To solve this issue, you can use the MySQL `UPDATE` statement with the `SET` clause to add the 2 points to the existing value.

<?php
// Connect to MySQL database
$servername = "localhost";
$username = "username";
$password = "password";
$dbname = "database";

$conn = new mysqli($servername, $username, $password, $dbname);

// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
}

// Add 2 points to a MySQL value
$sql = "UPDATE table_name SET column_name = column_name + 2 WHERE condition";

if ($conn->query($sql) === TRUE) {
    echo "Points added successfully";
} else {
    echo "Error updating record: " . $conn->error;
}

$conn->close();
?>