SELECT * FROM tredirectreferer tr LEFT JOIN tredirect t ON t.kRedirect = tr.kRedirect WHERE tr.cIP = :cIP AND t.cFromUrl = :cURL LIMIT 1