Method:
selectNoExecute()
Class:
SQL
Method Call:
include_once("core/sql/SQL.php");
$db = new SQL();
STRING $db->selectNoExecute(ARRAY: $tables, ARRAY: $fields, [STRING: $condition]);
Description:
Format a SELECT statement. If $fields contains an associative array (or arrays), then that inner array is treated as an alias and is
parsed by formatAlias(). Unlike select(), this method does not internally execute the statement and requires the explicit use of query() to do so.
Do not add backticks, single-quotes etc. - the SQL class will do this automatically depending on the database we're connected to as long as $tables and $fields are arrays.
The return is a SELECT statement suitable for passing to query().