Good day.
It is necessary to make a sample of the number from the database.
At once I will say the field is the date has the format not date, but int.
Everything is recorded from the time () function.
The database has approximately the structure
id time 1 1394553008 2 1394553008 3 1396553308 4 1324233008 ... I tried to make such a request
SELECT * FROM `data` WHERE YEAR(time)='2014'; The result was received, but this is so strange, about 100 records are stored in the database, and all were entered this year, but only 6 were received as a result.
So to be in such cases?