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 (44762,44531,18446,22509,44739,17904,18719,44835,30986,18430,44856,17981,13425,37267,45042,45229,45277,34194,44764,45515,18042,18688,6862,44865,44873,24441,5993,19057,44869,44836,28313,24412,43800,13988,44837,18650,44894,17492,44849,45262,17601,39676,44767,5388,14622,45180,36472,18652,45177,17351,45346,24411,17114,13,6875,45518,17278,4686,24438,18996,4765,44669,18286,44711,44766,17848,44855,17556,30135,18301)
Unknown column 'np.person' in 'where clause'