Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (37057,44689,45517,13922,17009,30135,44765,37267,45515,17839,44687,43800,17755,16885,13,24411,44674,16935,17492,4686,44671,18996,44878,18650,18172,44775,18900,45262,44855,5259,17114,45277,45177,24412,10402,13988,18237,44894,24438,17092,5388,3883,17527,45346,6875,44669,45072,44835,44531,19078,9341,44884,32454,6782,18430,44685,44875,44745,18572,45561,5993,44868,44869,18794,44849,44873,44768,13425,28530,17756)
Unknown column 'np.person' in 'where clause'