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 (17657,17755,18172,45567,44875,44845,13988,44854,9341,44768,5993,18301,45517,45277,5388,17756,18650,3883,44764,30963,44685,45262,6782,44837,18279,44855,18900,37057,43800,17527,44858,30986,44669,45421,17904,17981,45229,37267,17848,18719,24441,44835,17351,24412,18353,14402,13,6875,44849,45072,44863,24438,18430,44853,45346,3,19057,34194,17009,44674,44870,45561,17492,4686,18981,45051,44689,18652,44766,13425)
Unknown column 'np.person' in 'where clause'