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 (18172,44869,5993,45180,19057,5259,18996,24438,44845,17009,18648,17657,17351,44855,44711,18894,17335,44849,32454,5410,18301,44858,44875,30963,3883,45421,8753,18286,10402,30135,44861,24411,44674,4686,45515,18042,44837,39676,44745,16935,44685,19078,13,44865,45051,45518,6782,44851,18572,44775,36472,44687,18279,13425,44856,44868,45567,18353,44764,18427,6862,45229,45517,6875,44866,18652,37267,44878,30986,37057)
Unknown column 'np.person' in 'where clause'