syntax error: select photo from table_background where type='logo' limit 0,1