I have this mysql query
select
id,
FROM_UNIXTIME(`placedate`) as placedate_mysqldate
from
orders HAVING placedate_mysqldate < '2011-08-01 00:00:00'
so the query returns about 1000 record and I want to delete it in the same query statement.
Because the placedate_mysqldate is userdefined and not exists in the database I cannot use the normal delete statement like
delete * from orders where placedate_mysql < '2011-08-01 00:00:00'
so any idea how to do that?
after msarchet gave me an idea the sql query was