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 (44878,6782,18185,44674,13425,18688,44866,18652,44867,17601,13,18353,44836,45286,17527,24441,17278,17351,44835,44845,3,9341,44861,5388,44768,18572,44868,45180,44531,32454,17904,17237,5993,45043,5259,6609,44671,3883,17848,18279,17771,18996,44711,18650,44640,17835,45517,30986,45262,18286,45042,44765,30135,17657,44745,45277,18900,44856,44685,44848,45072,13922,19057,44766,18719,4765,8753,34194,44764,17492)
Unknown column 'np.person' in 'where clause'