i need to make this code working but there is one problem
 <?php
        {
          while($row = mysqli_fetch_assoc($result))
          {
            echo" <a href='article.php?title=".$row['a_title']."&date=".$row['a_dat']."&hmm=".$row['a_id']."'>
             <div class='box'>
            <div class='post-st'>
            $connection = new mysqli(...);
            $data = $connection->query("SELECT image FROM users WHERE a_author='$row['a_author']' ");
       if ($data->num_rows > 0)
       {
        $row2 = $data->fetch_assoc();
        $picture=$row2['image'];
      }
        if($_SESSION['picture'] == "")
       echo '<img width="35px" height="35px" src="../images/default.jpg" alt="Default Profile Pic"> ' ;
    else 
       echo '<img width="35px" height="35px" src="../images/'.$picture.'" alt="Profile Pic">' ;    
            </div>";
          }
        }
     ?>
the problem is on that line of code and i don't understand why
   $data = $connection->query("SELECT image FROM users WHERE a_author='$row['a_author']' ");
i checked every " or ' but i did not founded any missing one
 
    