SELECT * FROM tip t1 , (SELECT tipid FROM tip ORDER BY RAND() LIMIT 0,2) t2 WHERE t1.tipid = t2.tipid