MySQL-query vil ikke....
Hvorfor vil flg. MySQL query ikke:SELECT brugere . * , brugere.id
as brug_id, bookninger . * , bookninger.id
as bid, book_datoer . * , book_datoer.id
as book_id, UNIX_TIMESTAMP( concat( book_datoer.aar, '-', book_datoer.maaned, '-', book_datoer.dag, ' 01:01:01' ) )
as unix_time_kol
FROM brugere, bookninger, book_datoer
where book_datoer.brugerid = brugere.id
and book_datoer.book_id = bookninger.id
and 1032994861 <= unix_time_kol
and unix_time_kol <= ( unix_time_kol + ( 15 * 24 * 3600 ) )
ORDER BY aar, maaned, dag
asc
Den kommer med fejlmeddelelsen:
Unknown column 'unix_time_kol' in 'where clause'
