Php Mysql Select Where Variable Example Algebra