Skip to content

Commit

Permalink
status field backtics
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasKrais committed Aug 13, 2023
1 parent 220d374 commit 1e61561
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@
LEFT JOIN '. rex::getTablePrefix() .'d2u_jobs_jobs AS jobs ON lang.job_id = jobs.job_id
LEFT JOIN '. rex::getTablePrefix() .'d2u_jobs_categories_lang AS categories ON category_id = categories.category_id AND lang.clang_id = categories.clang_id
LEFT JOIN '. rex::getTablePrefix() .'clang AS clang ON lang.clang_id = clang.id
WHERE clang.status = 1 AND jobs.online_status = "online"
WHERE clang.`status` = 1 AND jobs.online_status = "online"
GROUP BY job_id, clang_id, name, seo_title, seo_description, picture, updatedate;');
$sql->setQuery('CREATE OR REPLACE VIEW '. rex::getTablePrefix() .'d2u_jobs_url_jobs_categories AS
SELECT job_urls.category_id, categories_lang.clang_id, categories_lang.name, categories_lang.name AS seo_title, categories_lang.name AS seo_description, categories.picture, (SELECT MAX(job_urls_updatedate.updatedate) FROM '. rex::getTablePrefix() .'d2u_jobs_url_jobs AS job_urls_updatedate WHERE job_urls_updatedate.category_id = job_urls.category_id) AS updatedate
FROM '. rex::getTablePrefix() .'d2u_jobs_url_jobs AS job_urls
LEFT JOIN '. rex::getTablePrefix() .'d2u_jobs_categories_lang AS categories_lang ON job_urls.category_id = categories_lang.category_id AND categories_lang.clang_id = job_urls.clang_id
LEFT JOIN '. rex::getTablePrefix() .'d2u_jobs_categories AS categories ON categories_lang.category_id = categories.category_id
LEFT JOIN '. rex::getTablePrefix() .'clang AS clang ON categories_lang.clang_id = clang.id
WHERE clang.status = 1
WHERE clang.`status` = 1
GROUP BY category_id, clang_id, name, picture;');

// Insert url schemes
Expand Down

0 comments on commit 1e61561

Please sign in to comment.