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 (44865,45277,18172,44870,3883,17657,34194,6875,17703,44669,18353,18572,17527,18430,17601,13988,37267,18719,17278,44884,18185,44863,30135,44849,13922,45517,44854,24438,18996,44689,18042,44848,45051,44765,44711,18446,44861,39676,45516,44836,17904,44858,45561,32454,18688,44531,45042,13,14622,5410,17237,44873,17114,18648,19057,17835,43800,44851,18286,44875,44762,45072,44775,17351,44869,17755,44745,45518,44835,8753)
Unknown column 'np.person' in 'where clause'