I try to get value from the db with date_format(created_at, '%Y-%m-%d %H:%i'), but it seem i got the wrong query and could not find any solution on the issue.
Anyone who knows how to retrieve created_at value with specific date_format? Can you help me on this?
your two where statements seem like they wouldn't work well together anyway - one or the other it seems. Here is one anyway which should help in doing the other