We face code quality issues because of inline mysql queries. Having self-written mysql queries really clutters the code and also increases code base etc.
Our code is clu
Put your query into database procedure and call procedure in the code, when it is needed.
create procedure sp_query() select * from table1;