Used = instead of LIKE in MySQL queries, also makes str_replace unnecessary