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 (44863,3,30963,18301,44689,17237,18572,18719,44640,44873,18981,9341,17848,45262,45516,18042,45180,17839,13988,13,18996,39676,18648,37267,44669,44739,44870,8753,43800,45518,24441,44866,44767,44868,17278,44869,44884,17009,44853,18900,45042,45515,45229,44674,5410,17835,6862,18237,30986,18172,18688,34194,44848,24412,44685,44845,18427,31354,44875,17703,44858,44861,6782,24411,45277,44531,17756,32454,18286,17771)
Unknown column 'np.person' in 'where clause'