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 (18279,44863,18648,45567,44884,3,44865,44669,44868,18719,34194,44739,44685,44767,18042,28530,24438,44764,18996,18446,45177,45180,18427,17848,44674,4765,18353,45516,17657,44870,44689,44640,17981,8753,18572,44671,30986,44762,18650,24412,17237,13922,45051,18237,18652,44873,30963,45262,24441,17904,39676,13,18172,44869,17278,43800,44687,44856,5410,45421,16885,44849,5259,17114,44866,44837,17092,17771,5993,18981)
Unknown column 'np.person' in 'where clause'