at least we know now, what the problem is.
as for the next step, try out the year query in a direct SQL client (mysql client. phpmyadmin, mysql workbench, etc.) to see, what your query returns.
The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
André Behrens, NY Times Software Developer
Last edited by Dormilich; 07-02-2013 at 08:30 AM..