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 (44858,24438,16935,44671,45051,45180,44870,18042,44856,24441,5388,17009,18652,18996,44711,44669,44837,44866,17237,45286,45043,37057,17351,18688,10402,17114,30963,44775,44689,44766,44531,34194,18719,45518,18172,30986,44685,17703,18353,30135,6609,45229,6875,43800,44869,32454,44640,44765,45561,18794,44849,9341,5410,17657,17904,45346,44878,17092,17839,44853,17848,18894,45516,4686,44687,44894,5259,17492,22509,45042)
Unknown column 'np.person' in 'where clause'