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 (44870,44853,17492,45517,18353,13988,45516,18286,17351,5410,18572,17756,18900,32454,34194,18237,45177,44854,44837,18430,44766,45286,6609,45421,44845,45262,44873,6875,17009,44858,44878,17657,5388,17848,44863,24441,45518,6862,44856,4765,37267,30986,45561,44861,44775,44745,44865,13425,44849,18894,16885,30135,18427,45229,44685,22509,18185,17556,44689,4686,18652,9341,44855,18301,3883,44711,8753,17278,44868,44867)
Unknown column 'np.person' in 'where clause'