You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$query = new \Envms\FluentPDO\Query($this->pdo);
$query = $query
->from('articles AS a')
->select("a.id, a.title, a.cdate")
->where("a.s_hidden = 0")
->where("a.s_draft = 0")
->leftJoin("articles_keys AS ak ON ak.aid = a.id")
->orderBy("a.cdate DESC")
->groupBy("a.id");
var_dumo( $query->getQuery() );
Have a result:
SELECT a.*, a.id, a.title, a.cdate
FROM articles AS a
LEFT JOIN articles_keys AS ak ON ak.aid = a.id
WHERE a.s_hidden = 0
AND a.s_draft = 0
GROUP BY a.id
ORDER BY a.cdate DESC
The text was updated successfully, but these errors were encountered:
Have a result:
The text was updated successfully, but these errors were encountered: