Database error: Expression #1 of ORDER BY clause is not in SELECT list, references column 'kll.kll_timestamp' which is not in SELECT list; this is incompatible with DISTINCT
SQL: SELECT DISTINCT kll_id FROM ((SELECT kll.* FROM kb3_kills kll INNER JOIN kb3_inv_detail ind ON ind.ind_kll_id = kll.kll_id WHERE ( ind.ind_plt_id IN (1,158 ) ) AND ind.ind_timestamp >= '2019-06-01 00:00:00' AND ind.ind_timestamp <= '2019-06-30 23:59:00' order by ind.ind_timestamp desc ) UNION (SELECT kll.* FROM kb3_kills kll WHERE ( kll.kll_victim_id in ( 1,158 ) ) AND kll.kll_timestamp >= '2019-06-01 00:00:00' AND kll.kll_timestamp <= '2019-06-30 23:59:00' order by kll.kll_timestamp desc ) ) kll order by kll.kll_timestamp desc