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 (18900,16885,30135,44853,34194,45517,17114,18353,39676,45421,28530,44685,17848,44867,17009,4686,17527,17092,14622,44869,8753,45072,44687,44689,45515,30986,4765,44767,44873,18719,24411,44856,13922,45180,18446,44870,44845,36472,44775,44837,18430,13425,5993,17657,18794,44855,18279,18172,45561,43800,44868,45516,18648,10402,18301,44764,44762,44640,17278,44711,18650,30963,44861,19057,24441,45346,45277,44851,44669,44858)
Unknown column 'np.person' in 'where clause'