Hi There,
I've been working hard at this for a while, and I've figured a few things out, but I'm having trouble sorting the below query by "mls_condos.date_posted":
It doesn't sort properly. I want it to sort "owyw.development" by "mls_condos.date_posted" from newest to oldest. I also don't want to show duplicates of "owyw.development". Just each "owyw.development" ordered by the corresponding most recent "date_posted". I think I'm close, but lack a little understanding with GROUP BY and ORDER BY.
Thank You in Advance!
I've been working hard at this for a while, and I've figured a few things out, but I'm having trouble sorting the below query by "mls_condos.date_posted":
Code:
"SELECT SQL_CALC_FOUND_ROWS owyw.*,mls_condos.name,MAX(mls_condos.date_posted),COUNT(mls_condos.date_posted)
FROM owyw
LEFT JOIN mls_condos ON mls_condos.name=condo_names.mlsname
JOIN condo_names ON owyw.development=condo_names.mcbname GROUP BY owyw.development
ORDER BY mls_condos.date_posted DESC"
It doesn't sort properly. I want it to sort "owyw.development" by "mls_condos.date_posted" from newest to oldest. I also don't want to show duplicates of "owyw.development". Just each "owyw.development" ordered by the corresponding most recent "date_posted". I think I'm close, but lack a little understanding with GROUP BY and ORDER BY.
Thank You in Advance!