Is something like this possible:
SELECT DISTINCT COUNT(productId) WHERE keyword=\'$keyword\'
What I want is to get the number of unique pro
use
SELECT COUNT(DISTINCT productId) from table_name WHERE keyword='$keyword'