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 (45346,18427,44768,17601,17556,44875,44884,44739,13,6862,44878,44873,43800,5388,44869,34194,44865,17114,6782,13922,30135,44855,45072,44858,44866,18237,18353,44867,14622,45043,45421,30986,9341,17835,18446,45567,44775,44687,18900,44836,18650,44856,44861,44689,3883,44669,44745,45180,16885,45262,45516,44853,18719,44851,44711,45286,44685,24441,18042,44671,17527,44894,18172,17351,4686,18981,18688,17981,17492,5410)
Unknown column 'np.person' in 'where clause'