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 (18719,5259,17092,45516,44873,44875,45518,45072,44855,17351,44687,44866,18042,18301,45042,36472,18652,44884,45421,45051,44765,45043,44869,18648,17492,17756,44745,13425,34194,45567,44853,18427,30963,45515,18237,18572,5410,13,18286,4686,17981,44739,44766,16885,17601,45180,44865,24438,44711,44867,19057,18794,45346,44762,45177,30135,44674,17335,5388,18688,18172,44851,17278,44868,17839,17771,18996,22509,43800,44764)
Unknown column 'np.person' in 'where clause'