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 (24412,17492,6609,17556,44870,44836,24441,44674,17771,44845,18430,45516,17114,44853,43800,44764,18648,4765,22509,13,44873,45180,13988,44849,44875,16885,30135,18981,6782,17848,18996,17904,45286,28313,44851,17527,3883,17092,18042,34194,18446,17756,5388,44739,39676,18353,44687,45051,17703,18652,4686,45177,24411,10402,17237,44867,14402,5259,44685,18301,17278,44711,18237,17981,44858,18794,44855,18286,5993,45042)
Unknown column 'np.person' in 'where clause'