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 (14402,44854,18794,31354,18900,44835,8753,45518,18446,24438,13425,18185,18652,6782,13922,16935,45286,44767,17278,44855,44745,18353,18894,44689,44861,45177,44894,44640,17114,44851,3883,44836,37267,44739,13,18237,18650,17657,18172,44768,5388,44685,45277,17556,44866,18688,18427,44848,17492,45517,44837,44775,36472,44858,17009,44853,17703,18430,17351,24411,3,17981,44711,17527,45421,17237,30986,18981,45262,13988)
Unknown column 'np.person' in 'where clause'