I need to write a function that takes in a long string that is a sql command and searches for an equal sign goes back to the word before it and adds "post." before it.
Example:
input:
$sqlFilter = "WHERE sport = 'Hockey' AND team = 'New York Rangers';
Output:
$sqlFilter = "WHERE post.sport = 'Hockey' AND post.team = 'New York Rangers';