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 (17556,18353,45286,44866,18286,44854,44775,6875,44669,14622,45229,44762,44875,45277,17092,18572,45516,44837,45515,44869,43800,45177,18172,5388,14402,17771,18894,9341,45180,37057,44687,24441,45262,44884,44836,45421,4686,44835,36472,18042,44739,18981,18301,13425,18446,45518,45043,44855,17237,5259,19057,45346,44845,44849,44894,44865,44868,4765,6609,17657,44766,17114,30986,18794,44767,44685,17848,45517,3883,17755)
Unknown column 'np.person' in 'where clause'