値を一重引用符で囲むと、確実に機能します SELECT * FROM ctx_bookings WHERE DATE(booking_time) <= '2012-12-28' ORDER BY id ASC SQLFiddleデモ