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 (45567,44870,43800,22509,44853,45517,18894,19078,17835,17335,44685,45262,45177,44836,45229,44669,44671,24411,18996,45421,17848,44835,19057,4765,18688,18430,18650,18353,44687,18042,18427,44739,28530,44764,44858,37057,45051,44766,44674,18652,44866,5259,45286,44848,17114,45561,13988,5388,44884,44689,13,24412,37267,18237,44765,44894,44845,18185,30963,44851,44856,44868,17556,44745,44867,30986,6875,34194,44640,17009)
Unknown column 'np.person' in 'where clause'