prepare($sql); $sth->execute([':cid' => $company_id]); $row = $sth->fetch(PDO::FETCH_ASSOC); $answer['success'] = 1; $answer['output'] = $row; exit(json_encode($answer));