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 (44848,45567,37267,9341,18650,44856,44873,45346,45229,17904,17278,18430,44845,44835,18185,45421,30986,16885,5993,17848,39676,30135,44863,18353,45051,45177,44689,14402,18172,45286,13,18900,17703,19057,6862,44531,14622,44669,18446,18042,24438,18688,45072,31354,24441,18719,45515,17335,18794,44875,45277,18427,8753,18648,44849,5259,17657,44870,44869,45042,4765,44766,13922,44855,44884,18301,18572,6875,44739,44866)
Unknown column 'np.person' in 'where clause'