title: Array variable inside DB::raw query laravel
body: <p>I want to predifine <strong>$processingStatus</strong> array and use it inside Laravel DB::raw query but this gives me the following error-</p>
  
  <p><strong>Syntax error or access violation: 1064 You have an error in your SQL syntax</strong></p>
  
  <p>My query is a large one so I am only pasting the fragment which I guess is causing the error-</p>
  
  <p><code>DB::raw("COUNT(CASE WHEN (status_change_log.status in $processingStatus) THEN 1 END) AS processing")</code></p>
  
  <p>My processingStatus variable contains <strong>[0 => "S2",  1 => "S13",  2 => "S21"]</strong></p>
  
  <p>Anyone help me out with proper format?</p>