Ver originalSELECT t1.id, t1.username, t2.username AS username2 FROM devices t1 INNER JOIN users t2 ON (t1.user_id=t2.id) WHERE t1.username=text