SELECT * FROM tablename WHERE 1

2 and 3 are the same in MySQL, functionally 1 is also the same. where 1 is not standard so, as others have pointed out, will not work in other dialects. People add where 1 or where 1 = 1 so where conditions can be easily added or removed to/from a query by adding in/commenting … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)