Multiple blank images with no data. New post.

I,m a noob at mysql so I have a question for the community. We are running Fog 1.2.0 on Ubuntu 14.04 LTS.
My question is how do i get to the sql interface to run the command " DELETE FROM fog.images WHERE imageName IN (’’,NULL);" ?
We also had multiple blank images start populating our database, seems to have stopped at 32,205 count. Any help would be appreciated. Thanks!