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 (30986,17835,18353,17703,5993,8753,18286,44531,44894,4765,18996,18572,44689,17848,37267,28313,5259,16935,14622,45346,44861,45180,18794,44687,44854,44764,18652,3,44873,44766,18279,37057,45516,18446,44869,44884,45042,17556,14402,44767,6862,44870,45421,45262,13425,17527,28530,18688,17904,44849,45051,45567,18900,17492,44685,45043,43800,19057,39676,6609,44863,17839,24438,45177,45286,44671,18237,44674,44845,18981)
Unknown column 'np.person' in 'where clause'