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 (22509,17237,6875,44687,44671,44762,18894,5388,45051,44764,44711,44863,44894,45262,18688,44674,44856,17848,45042,5993,44775,44868,13922,18430,6862,18996,44869,17771,44837,45229,17835,19057,17278,18794,30986,44867,6609,17114,9341,45516,13425,44836,44765,44851,18042,18652,32454,18719,45517,44767,44873,44865,17527,44849,18301,44858,18353,44768,4765,8753,17092,44878,44861,17755,45421,13988,44835,44739,18172,13)
Unknown column 'np.person' in 'where clause'