MT#4607 Replace UNION by simple OR

MySQL 5.5 handles OR properly in terms of indices, no need for a UNION,
which is completely broken with DBIx::Class anyways, killing the performance.
MT#4607 Bump version to 1.0.18 for 3.0 backport.