well, if the db has 3 columns (which is very cool) you can do this
SELECT CONCAT(AreaCode,Prefix,Body) AS PhoneNumber FROM contacts
and so you're comparing two solid number strings.
If the numbers given you have chars in them try doing this first for the comparision:
<?php
$number=preg_replace('/1/','',$number); //lose any possible 1 before everything
$number=preg_replace('/[0-9]*/','',$number); //keep only 0-9
?>
and of course you can then check and make sure you're left with 10 characters before you compare