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 (6782,37267,13,39676,24438,22509,17237,45262,45561,14622,43800,44640,17756,44685,4765,44894,44875,44848,44870,18652,45229,13988,45421,24411,44765,45517,17601,18650,17904,6609,13922,18446,17492,44768,44687,45072,4686,18430,34194,44689,6875,44854,45177,30986,44858,5410,17278,45518,45286,5993,18042,44868,18237,44867,18996,45051,44884,9341,16885,45516,18572,44873,18286,31354,10402,18688,37057,44836,19057,17657)
Unknown column 'np.person' in 'where clause'