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 (28530,44640,45051,13,44894,45180,44768,44835,44845,30135,17657,18446,44848,17835,44739,39676,19078,44745,44884,18900,13425,19057,45042,44671,18185,16885,45515,45072,3883,44873,17981,44856,18652,45346,18894,45277,18430,44685,6862,18353,18301,17237,45421,44854,4686,14402,30986,13922,45229,44689,14622,44851,44875,18237,18572,18981,18688,22509,17756,18042,18286,17092,45262,10402,45516,44764,6782,44837,45517,18427)
Unknown column 'np.person' in 'where clause'