I would love to store queries (sometimes they can be unknown to me), in either MongoDB or MySQL.
In MySQL, I believe I'd have to store the query as text, so for example how could I retrieve that query from MySQL and be able to run it?
$collection->findOne( array('email' => $user_data['email']) );
I am also considering MongoDB, if there could be a more efficient way of storing a query.