$query=Database::prepare(Database::get(),"SELECT id, title, tags, public, star, album, thumbUrl, takestamp, url FROM ? WHERE title LIKE '%?%' OR description LIKE '%?%' OR tags LIKE '%?%'",array(LYCHEE_TABLE_PHOTOS,$term,$term,$term));
$query=Database::prepare(Database::get(),"SELECT id, title, public, sysstamp, password FROM ? WHERE title LIKE '%?%' OR description LIKE '%?%'",array(LYCHEE_TABLE_ALBUMS,$term,$term));
$query=Database::prepare(Database::get(),"SELECT thumbUrl FROM ? WHERE album = '?' ".Settings::get()['sortingPhotos']." LIMIT 0, 3",array(LYCHEE_TABLE_PHOTOS,$album['id']));