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 (45051,5388,18688,19057,6782,44858,18652,17335,45042,44865,17278,19078,44739,13425,18286,45516,18042,44531,44855,18301,44640,17556,17351,44866,44856,39676,44671,44894,18572,44873,18446,45286,44689,24412,44853,17835,44687,37267,45517,44851,17848,17009,28530,36472,24441,45518,44849,18279,18894,45277,44745,18981,44765,4686,13988,18237,44835,45515,44854,44878,18427,5993,4765,6862,17981,17756,44863,18794,17092,17771)
Unknown column 'np.person' in 'where clause'