Ciao a tutti ho un problema con union e order by che non risco a risolvere.
Ho questa query:
Il problema è che ricevo sempre questo errore: Unknown column 'visit' in 'order clause'Codice PHP:
"(SELECT id, title FROM test_1) UNION (SELECT id, title FROM test_2) ORDER BY visit DESC LIMIT 5"