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 (6862,17835,37267,44867,44767,44865,36472,18996,45042,44711,13425,17771,44775,44878,16885,19078,3883,44835,43800,18652,44674,18279,31354,44845,44866,45286,17237,18981,17492,44855,13988,24438,44745,44851,44687,44640,45561,44854,17839,30135,17657,45072,45229,18042,44870,18427,44853,45043,24411,18572,45516,44875,13,19057,45515,44849,6875,44894,45277,17601,18446,44765,44863,44848,28313,18185,44766,45518,44669,44868)
Unknown column 'np.person' in 'where clause'