L'operatore . serve a concatenare delle stringhe. Avresti comunque potuto evitare di usarlo scrivendo:
(Bisogna aggiungere le graffe). Una lettura qui potrebbe essere utile.Codice PHP:
$str_sql = "SELECT CategoryID FROM staff_categories
WHERE Staff_StaffID = '{$arr_staff['StaffID']}'";