<?php
    $images = $db->run("SELECT * FROM attachment WHERE projectId = ? AND (mimeType = ? OR mimeType = ? OR mimeType = ? OR mimeType = ? OR mimeType = ?) ORDER BY createdAt DESC", $userProject['id'], 'image/jpeg', 'image/png', 'application/pdf', 'video/quicktime', 'video/mp4');
?>