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 (17009,44685,45229,17351,44836,24412,45043,14622,17771,18427,44848,17492,31354,9341,24438,44762,45515,22509,8753,44856,18996,17848,45042,45072,4686,13,44884,16935,44671,19078,45517,17278,18172,44867,44854,44640,45180,44849,44739,44689,6875,45421,44674,30986,44863,44858,6782,45286,34194,37267,44669,3,10402,44868,37057,45051,28530,18648,17601,45567,18794,18279,24441,18301,18894,44870,44851,28313,19057,44711)
Unknown column 'np.person' in 'where clause'