Heya,
I’ve written a query, which works when I run it in phpmyadmin.
But I just can’t get it to work when I write it in PHP.
The query is following:
[php]SELECT MIN(created) FROM ost_ticket WHERE status
= “open” AND helptopic
= “Faktura” AND work IS NULL ORDER BY created
DESC[/php]
What I need is to print the earliest date (the field created).
Can anyone help me?
Thanks in advance!