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 (17527,14402,44869,44851,44765,22509,6609,45051,4686,44764,44766,18719,44858,36472,17114,44884,4765,45180,44865,44739,18572,45517,17835,3883,6862,18996,18652,28530,45515,17556,18279,44837,18446,44674,17351,45072,44867,13,18650,18237,44855,17335,37057,17601,17771,18427,44878,44669,31354,6875,44863,44868,30963,3,44671,17703,34194,45042,45567,44835,44870,44853,44848,44745,45177,44689,18301,45043,45518,45229)
Unknown column 'np.person' in 'where clause'