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 (44739,18286,44766,18042,18650,44687,6609,45567,16885,44745,18996,45516,6782,45051,18652,6875,44894,44884,17114,17771,18427,44689,44848,4765,18446,43800,13,44870,34194,24438,30986,24441,5259,44775,18981,45177,19078,44835,44866,44854,28530,17904,45180,5388,44869,18572,14402,44851,17981,13988,13922,44711,22509,8753,45517,30135,45277,44849,17848,18172,18279,44767,18301,17755,45561,17657,17092,45072,44674,17601)
Unknown column 'np.person' in 'where clause'