[eluser]xwero[/eluser]
What if you do
Code:
$sql="SELECT * FROM threads WHERE 'dsd_title'=\"".$dddd[$i]['url_title']."\" AND 'posted_date'= max('posted_date')";
Edit : ok above code results in an error which i could have known.
But if you first do a query for the highest date and then add that value to the actual query. If you have a database that supports subqueries you can do it in one query.