Ok Editing this ...
SELECT *
FROM votelog
WHERE ipaddress = '127.0.0.1'
AND datevoted
BETWEEN DATE_SUB( CURDATE( ) , INTERVAL 24 HOUR )
AND CURDATE( )
LIMIT 0 , 30
This is an example of a query that I am trying to run to find messages in the last 24 hours. In the last 60 minutes, I also run a separate one for different needs. The problem is that in the table I'm testing, there are at least 4 rows, of which 3 refer to a 24-hour sentence.
Edit
Ok, so I figured out my problem, 1 Im to curse fatigue. 2 Awful use of Between and Date_Sub .. This has not dawned on me so far, I should have used the name col, where I have CURDATE () when answering my question below.
This is what the timestamp in the database looks like, the standard DATETIME .. 2011-09-01 13:20:08
while I do not give results.