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 (44849,44669,44855,44765,18279,44531,44851,44837,44854,44861,44858,24411,3883,45043,44689,18427,18650,24412,18894,17114,18981,44873,45229,44711,18172,30963,45072,45346,44767,45567,17556,44869,5259,5993,45518,17755,6862,44878,44674,45515,13425,17092,43800,44875,44870,45561,45262,36472,39676,44762,18652,17657,17848,44835,18688,18794,44764,44868,34194,18301,44853,16885,32454,17492,44768,44739,17601,45277,18446,17904)
Unknown column 'np.person' in 'where clause'