I need to:

Code MySQL:
1. SELECT column_name FROM columns WHERE product_id='5'
 
2. SELECT value FROM atributes WHERE product_id=5
3. SELECT value FROM atributes WHERE product_id=8
1+2+3 = image posted.

I need to merge values from two different products with same column for both in one table.

HTML TABLE:

HTML Code:
<table>
[mysql select]
<tr>
<td>Column</td>
<td>1st product value</td>
<td>2nd product value</td>
</tr>
[/mysql select]
</table>


I cannot solve this for days... Please help me if you can!!