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 (44884,44739,44849,6782,18650,45072,45421,44837,44767,44764,44685,17771,5993,18688,18430,17556,44863,44851,18301,44855,18427,37057,34194,37267,17009,44766,5259,44894,44873,3883,17835,6862,44687,18286,44762,18572,17756,45515,44689,18172,24411,18719,44669,17114,17335,44854,4765,32454,45518,13988,45346,45051,4686,45516,6875,18446,6609,17527,18900,18279,16935,19057,44674,30963,3,18794,45229,44869,44640,18185)
Unknown column 'np.person' in 'where clause'