Failed to prepare query!
Error: Unknown column 'relevance' in 'order clause'
Query: SELECT pa.album_id,pa.user_id,pa.channel_id,pa.dvd_id,pa.orientation,pa.title,pa.slug,pa.rating,pa.rated_by,pa.likes,pa.percent,pa.total_views,pa.total_comments,pa.total_favorites,pa.total_photos,pa.cover_id,pa.type,pa.add_time,pa.view_time,pa.premium,u.username FROM photo_albums AS pa LEFT JOIN user AS u ON (u.user_id = pa.user_id AND u.status = 1) WHERE pa.orientation = 1 AND pa.status = 1 ORDER BY relevance DESC LIMIT 40