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 (44868,17092,17756,44869,45051,3,45286,37057,44765,43800,44865,45516,37267,5993,17839,13425,17703,5259,16935,8753,44875,18286,44851,44745,6875,45517,5388,18900,44845,45072,44837,17755,18981,17009,44669,18279,17848,14622,19078,45177,44767,44764,18894,44856,44884,18446,45277,44854,44870,18648,44671,24411,4686,44873,44687,18353,44863,45180,45421,36472,17771,44768,18652,45518,45515,44835,18427,44878,44762,30986)
Unknown column 'np.person' in 'where clause'