I'm building a MySQL query "interface". It will allow me to make selects more easily. However, i'm having a doubt about passing empty parameters. Some of my function parameters are not required, so, i'm passing them empty.
For example: query('table', '*', '', '', '0,10');
Being: query($table, $from, $where, $orderby, $limit)
Is this against some best practice? Am i doing it wrong?