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 (17092,44855,28313,22509,44687,44869,44739,44865,17657,44849,17278,18652,44745,45567,44856,18900,30135,5388,24411,45277,18996,44767,44640,44863,44884,39676,45262,17839,18353,18650,44858,5259,6875,18279,45516,45180,44861,45286,44689,3883,8753,44851,44764,18286,24412,18237,16885,44894,17835,44775,4765,44835,18427,13,45051,44875,44669,18042,45517,17601,37267,17771,45229,36472,17009,17237,44867,17755,18185,17904)
Unknown column 'np.person' in 'where clause'