Like this SELECT boards.*, hiddenboards.userId IS NOT NULL AS hidden FROM boards LEFT JOIN hiddenboards ON hiddenboards.userId = '3' AND hiddenboards.boardId = boards.id WHERE boards.active = 1 ORDER BY pos;
I want to use this query in DBIx::Class, but... _______________________________________________ List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class Wiki: http://dbix-class.shadowcatsystems.co.uk/ IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/ Searchable Archive: http://www.mail-archive.com/[email protected]/
