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 (44873,22509,44685,18981,44867,44835,44669,44531,44762,37267,44853,17492,44854,13425,6862,44851,45043,24411,45567,44856,44845,45180,18430,17114,43800,45518,45517,13922,44855,19057,17009,17237,18185,5388,44745,44868,18286,24438,45346,45042,18652,44866,17848,17904,44869,44875,45516,30963,45229,30986,14622,44858,44671,44775,17835,45072,44765,45421,16885,18794,6609,10402,18648,44863,44767,18688,17756,44836,5993,24441)
Unknown column 'np.person' in 'where clause'