Soldato
PHP:
$query = ("SELECT *
FROM operators
JOIN products
ON operators.idoperators = products.idoperator JOIN results
ON products.idProducts = results.idproducts
WHERE (products.idProducts ='2'
OR products.idProducts ='5'
OR products.idProducts ='9'
OR products.idProducts ='10'
OR products.idProducts ='12'
OR products.idProducts ='13')
ORDER BY date DESC
LIMIT 6");
The problem I have is idproduct 9 has more entries each week, which duplicates the entries, I want 1 entry per idproduct, how can I do that?
I do have an auto increment column...