Sync table working, but not returning results