Concur. You should test for $read before using it, and possibly also test for rows:
if ($read && $read->num_rows) {
while ($row = $read->fetch_assoc()) {
do_something();
}
}
Or fail early, which is generally good design:
if (!$read) {
//error routine here.
}