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 (44875,45517,18430,45346,19057,44865,45177,45518,30986,18446,18237,30135,17848,18172,17492,44674,45561,44851,5388,16935,18279,3883,44858,18652,14402,44878,44867,45421,18996,44849,16885,45516,13425,6875,17527,4686,44835,37057,44837,17657,45567,17114,5259,17351,44685,17278,17335,44853,8753,44766,17904,45229,5410,45515,37267,13988,45042,45277,17839,31354,44873,18301,44531,44689,24438,18688,18042,17009,6862,18353)
Unknown column 'np.person' in 'where clause'