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 (18996,17703,17114,44851,44531,32454,44768,34194,45051,36472,44854,3,19057,44689,18572,18981,44884,18286,44711,18794,13988,13425,44835,10402,44856,18652,17092,44685,37057,18719,19078,31354,44861,44836,44849,44870,44853,18301,18042,18900,44866,6875,28530,44894,5259,30135,14622,22509,44875,44765,17657,45561,3883,28313,30963,44837,45516,17492,18172,44845,44863,45518,44865,17601,45517,44766,17527,44873,44640,44671)
Unknown column 'np.person' in 'where clause'