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 (44858,24438,16935,45286,44745,18353,5410,18794,24441,44836,44884,17278,17527,17981,3883,44669,44845,30986,14622,37057,28313,28530,18446,13,18648,45561,18894,17703,18427,22509,44685,18650,5993,5259,31354,44869,6782,45043,18237,17904,44671,45515,45262,44851,17848,44866,44856,45277,44764,17771,44835,44854,24411,44868,44861,45421,45072,17009,44687,37267,44849,44766,18430,34194,44531,36472,44739,17351,24412,44711)
Unknown column 'np.person' in 'where clause'