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 (3,17351,31354,18172,24438,5388,45517,18794,44745,45518,45072,18237,17756,18894,44640,17657,45229,17904,30986,37057,45421,6782,18286,44768,44765,18353,44739,18648,17335,6875,44856,4765,44861,6609,44875,44873,44674,17771,44851,37267,44671,22509,18652,8753,44845,45051,18279,45515,44878,17981,17092,18042,44870,44687,44863,45262,18446,13425,44867,13,45042,30135,18719,17601,17527,44669,17848,28313,44711,18572)
Unknown column 'np.person' in 'where clause'