SQL query returning “Operand should contain 1 column(s)”
问题 I'm currently working on a query which will have all rows from one table, but only limited information from the other. I've tried working with this query: SELECT `t`.`uid`, `t`.`cid`, `t`.`id` FROM `tracking` as `t` JOIN (SELECT DISTINCT(`p`.`id`, `p`.`firstname`, `p`.`lastname`, `p`.`company`) FROM `publishers` as `p`) as `p` ON `p`.id = `t`.uid However, I get the error as in the topic heading. Can anyone see what I'm doing wrong here? Edit: Structure on tracking: id int(11) primary ai, cid