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 (31354,44851,4765,44894,24411,44762,6609,32454,44884,17092,45072,44835,44767,17237,44855,44711,17657,44848,30135,30986,6782,22509,44768,28530,44865,5388,16935,44669,18185,37057,6862,45051,44671,45277,10402,37267,17114,44689,17351,18279,3,18353,5259,45043,45042,44531,45180,44836,44853,18900,45516,44878,44764,44674,44766,44866,18981,45561,8753,44858,19057,45515,44745,5993,18172,45517,18286,17848,18430,44870)
Unknown column 'np.person' in 'where clause'