So in a statement like this what would change. This is just an example. The program this is used in just uses simple queries, inserts and updates.
$sql78 = "SELECT * FROM data_one WHERE status !='S' AND type = '$type' AND office = '$office_id' ";
$sql_result78 = mysql_query($sql78);
while($row78 = mysql_fetch_array($sql_result78)){
$MLOs[] = $row78["MLO"];
}