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 (44640,13988,45515,17527,24438,44689,34194,17703,44764,45567,5388,43800,17092,18427,45421,17657,30963,28530,44685,44531,45177,13922,44768,18279,45229,18652,44674,24441,44869,18996,44775,44669,44866,18900,44739,4686,28313,17556,45180,45051,45517,13425,36472,17492,37267,44837,5259,44836,18981,17278,6875,44878,44853,44835,18172,44858,30135,6862,45262,44767,14622,17904,17335,17114,45072,44849,45561,18648,44851,3)
Unknown column 'np.person' in 'where clause'