I would like to know if there is any performance problem while using 1=1 condition in sql query.
for example:
Code MySQL:
SELECT
	*
FROM
	`table`
WHERE
	1=1
	AND `field` = value

Such condition becomes handy in conditional search. For example
PHP Code:
if(isset($name)){
$sql_where .= " AND name='".$name."'";

....so on

And using in query:
Code MySQL:
SELECT
	*
FROM
	`table`
WHERE
	1=1
	{$sql_where}

Yours opinion please!!