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,17835,45229,17703,18185,24441,5388,14622,44766,17278,13,44671,45051,45517,45518,18430,45277,44764,18650,17904,18688,44674,18719,44866,16935,17755,17657,45421,18572,45262,13922,4765,44687,44851,18652,16885,17009,44775,45286,44878,44848,6862,44768,44863,17351,44858,18981,17771,44870,44689,18648,44884,17114,44845,6609,24412,44711,45516,45180,44745,44835,45177,44867,17756,22509,17237,37057,18286,28313,19078)
Unknown column 'np.person' in 'where clause'