如何在php中显示产品WHERE product_variant不等于1

I have a products table in SQL . I want to display the products that do not have the value of 1 in the product_variant column of my table.

I have a product_variant column in my products table. I want to only display the products that do NOT have the value of 1 in product_variant.

$query = query(" SELECT * FROM products WHERE product_variant != 1 ");
confirm($query);

nothing is happening.