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 (44685,17092,14622,44765,17835,6875,44531,14402,17237,44848,44858,44739,28530,19057,24411,45042,44856,5388,45421,6782,5993,6609,44671,18981,45229,17657,44866,43800,44687,34194,44875,44669,18353,22509,18794,17492,44894,45516,44767,18185,17009,4686,24441,18572,45517,44764,18650,36472,24438,44878,45262,30986,18172,45180,13425,44868,44766,45518,17351,4765,45277,18648,17527,44762,17114,18996,44837,18427,44768,45346)
Unknown column 'np.person' in 'where clause'