I am not understanding something about SQL Injection and how it works. I first started reading about it when you have user inputed information and you're selecting data from the database where the inputed information matches the one in the database. For example:
SELECT email FROM users WHERE username=?
Now, I understood that you set up a parameter and I was able to do it successfully, however, I dont understand if it is possible to get SQL injected from the "SELECT email" part, imagining the email is a string that can destroy the database, shouldn't it also be a problem? And if so, is there a fix for it?
I hope i am being well interpreted, my english is not the best, but I am available to your questions if you have some. Also, I did try to search for this but wasn't quite sure how to put it to words so I failed in finding a question similar to this one.