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 (44762,44878,44848,18572,17839,44894,44884,18794,18237,44739,18279,17237,44866,45516,30986,44766,14622,18996,24411,17351,18042,24441,17904,17092,44851,17981,45180,44854,6609,18652,18172,18353,24412,8753,18301,17771,13425,44849,45042,45515,18648,4765,44865,44858,13922,45561,44689,43800,44531,44685,36472,6862,16935,44868,44711,44745,45051,44674,30135,17848,17278,3883,44873,45277,45346,37267,18430,16885,17756,18900)
Unknown column 'np.person' in 'where clause'