title: Php mysql table column name conflict
body: <p>Running into an issue here caused by something beyond my control.
  I am running a DB query on a table I did not create, it has a table column named "end".  This is screwing up my foreach loop as it only gets the first instance and then stops on that particular variable.</p>
  
  <p>Here is my current code:</p>
  
  <pre><code>$eventDates = array();
    foreach( $events as $event ) :
      $eventDates[ $event-&gt;post_id ] = $event-&gt;start; 
      $eventEnd[ $event-&gt;post_id ] = $event-&gt;end; 
      $eventVenue[ $event-&gt;post_id ] = $event-&gt;venue;     
  endforeach;
  </code></pre>
  
  <p>The $event->end; is the problem.  Is there another way I can output that data that won't cause a conflict?</p>