In what scenarios would using a PHP class for SQL WHERE clauses be considered unnecessary or inefficient?

Using a PHP class for SQL WHERE clauses may be unnecessary or inefficient in simple queries where the conditions are straightforward and do not require dynamic generation. In such cases, directly embedding the conditions in the SQL query can be more concise and efficient.

// Example of a simple SQL query without using a PHP class for WHERE clauses
$condition = "status = 'active'";
$sql = "SELECT * FROM users WHERE $condition";
$result = $conn->query($sql);