fejl når jeg søger i flere tabeller
får en mystisk fejlmeddelelse når jeg skal have nedenstående kode til at søge i flere tabeller.. hvordan løser jeg dette?fejlmedd.: The SELECT would examine more rows than MAX_JOIN_SIZE. Check your WHERE and use SET SQL_BIG_SELECTS=1 or SET SQL_MAX_JOIN_SIZE=# if the SELECT is ok
<?php
require_once("../members/common.php");
//connect til mysql
$query = mysql_query("
SELECT
u.userEmail,
s.loebetidForAnnonce,
s.produkt
FROM
salgAfProdukt, koebAfProdukt, bytteAfProdukt, bortgivesAfProdukt AS s
INNER JOIN
userProfile AS u
ON
u.userId = s.userId
WHERE
ADDDATE(s.loebetidForAnnonce, INTERVAL -5 DAY) < NOW()
AND
ADDDATE(s.loebetidForAnnonce, INTERVAL -4 DAY) > NOW()
GROUP BY
u.userEmail
") or die(mysql_error());
