I don’t think it has too much sense. Although, this way you could hide the real static value from .php file, but keeping its hash value in php file for mysql query. The source of php file can’t be reached from user’s machine, but you have make backups of your files, and that static value is there. Selecting using hash of column would resolve this problem, I believe.
But, I didn’t find any examples or documentation saying that it’s possible to use such functions in queries (not for values in sql queries, but for columns to select).
Is this possible?
An extremely slow query that simply selects all rows with an empty “column”.
If you’re doing a lot of these queries, consider saving the MD5 hash in a column or index. Even better would be to do all MD5 calculations on the script’s end – the day you’re going to need an extra server for your project you’ll notice that webservers scale a lot better than database servers. (That’s something to worry about in the future, of course)