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 (44689,44875,24438,44849,44739,44765,18652,44861,17351,14402,44845,44669,44863,44869,44855,45421,6782,45567,45286,18353,44835,4686,14622,17703,44873,24411,5410,18286,44878,44775,44685,31354,17278,44674,13988,18185,45518,17904,44865,13425,13922,8753,18301,34194,18042,6875,17756,19057,45043,44851,17601,44854,44867,22509,5259,44856,17335,18900,17492,17835,45051,45277,18794,17237,19078,44884,18172,17981,44671,4765)
Unknown column 'np.person' in 'where clause'