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 (22509,17981,19078,24412,17904,44685,34194,30986,44855,44853,44873,18427,28530,18446,44858,44875,44739,17771,44835,17278,45516,18650,18185,18652,44674,17092,44884,16885,18572,6875,44671,44856,45286,37057,18279,5388,18237,16935,18894,44766,45262,6782,44762,18900,44854,18996,13,45180,24411,17755,45229,30135,44865,13922,45515,44851,17703,44868,44849,17556,8753,44870,17527,13425,5259,5993,18719,45517,44836,44837)
Unknown column 'np.person' in 'where clause'