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 (45517,44687,6875,18652,18301,44851,37267,45516,44835,44766,44856,18353,16935,45180,44863,44836,44854,45346,17904,45567,44875,17657,18446,17981,22509,10402,44640,44873,5410,6782,45286,44531,34194,30986,45262,18427,17755,19078,28313,17351,30135,30963,17835,18042,18279,44764,44848,4686,17237,18794,45042,18981,44837,44861,44765,44855,31354,24441,43800,13425,17278,14402,44853,44884,44674,24438,44775,19057,17492,45229)
Unknown column 'np.person' in 'where clause'