I\'m trying to use union() after I foreach the 2nd table. But it give me an error. Please see my code below.
union()
Code
$custom