My query doesn't return everything if an min is in the title.
Code:
$stmt = $db->runQuery("SELECT all * FROM articles WHERE id = :id AND title LIKE CONCAT(:slug, '%')");
$stmt->bindParam(':id', $_GET['id'], PDO::PARAM_INT);
$stmt->bindParam(':slug', $slug, PDO::PARAM_STR);
Example slug: test-4-1