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 (44865,3883,39676,4686,44875,17848,14622,45346,24441,5259,44685,44867,30963,6862,45177,5993,45421,19057,45072,18719,45286,44884,45042,18237,44837,44764,14402,16935,44674,44894,44848,28313,17771,37267,43800,44765,45567,8753,44687,18894,16885,45180,44836,44869,13425,44853,18996,45517,18652,17657,44739,44856,18648,44870,6875,44851,18794,19078,18301,44835,5388,36472,37057,45561,17703,45262,45277,13,17009,44671)
Unknown column 'np.person' in 'where clause'