SELECT wm.*,pb.phone_number,pb.`name`
FROM wa_message wm JOIN phone_book pb ON pb.id=wm.phone_id
WHERE wm.campaign_id=3 AND wm.is_sent=1