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 (3883,45567,44848,44765,39676,6609,5993,17527,9341,45177,18981,44853,34194,44884,37057,44739,5410,44674,36472,19057,44767,45516,44875,44861,44775,13988,17771,24441,44854,16885,45518,45561,17703,32454,45229,44764,17092,5388,45051,44766,16935,18237,24411,17492,44868,14402,4765,17756,28530,17657,45042,30986,44837,6875,17835,17278,45286,44851,44835,18427,18652,44687,44671,18172,4686,17755,17009,17848,8753,18794)
Unknown column 'np.person' in 'where clause'