identifier parsing to make mysql subselect wrapping work within literals