SQL doesn't read the $customerID variable as a variable. I think the () is the problem because when I remove the first part of () the editor sees the variable as variable but the SQL won't work.
$customerID = $_SESSION['ID'];
$query = $conn->prepare(
"SELECT * FROM quiz_list
WHERE (
(status = 1 AND shared = 1)
OR customer = '$customerID')
AND friendly LIKE '%$searchValue%'
ORDER BY id LIMIT 25;"
);
$query->execute();