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 (44884,44875,45042,17009,30963,44837,44853,13425,24441,44674,5993,17981,44873,18237,17771,28530,18794,14402,45515,44858,44894,18185,45517,44867,44866,45072,45262,45346,44836,44863,18042,44640,44868,17492,45277,44851,44671,13922,44856,44531,5388,44765,45051,18427,45177,19078,44764,36472,18900,44878,17351,17756,37267,17237,17839,28313,45561,44711,30135,44685,44855,6609,44849,19057,17904,45286,45567,44762,18301,44845)
Unknown column 'np.person' in 'where clause'