L'operatore . serve a concatenare delle stringhe. Avresti comunque potuto evitare di usarlo scrivendo:

Codice PHP:
$str_sql "SELECT CategoryID FROM staff_categories
WHERE Staff_StaffID = '
{$arr_staff['StaffID']}'"
(Bisogna aggiungere le graffe). Una lettura qui potrebbe essere utile.