prova questa query.. la tua ha sintassi sbagliata

codice:
select t.*  , gs.id_groups ,gs.nome_group from tech  as t  left join grouptech as gs  on  t.groupid = gs.id_groups  order by t.staffid asc  limit $per_page,$item