php query abbr fix