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 (44669,17703,18427,44767,44861,44875,45042,44853,44768,5993,45072,37057,44711,13425,3883,28530,44835,17771,44685,45229,44765,39676,44867,17755,45518,17278,10402,18279,18353,8753,44762,18648,4686,19078,30986,44870,18688,44837,18981,44865,6875,24438,18996,17756,14622,44848,44689,18900,17657,44671,44866,18719,17492,44851,44849,17237,44764,44854,44687,17601,45567,4765,45421,19057,6862,45517,32454,13,45051,17981)
Unknown column 'np.person' in 'where clause'