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 (19057,18353,13922,44711,30986,14402,44853,9341,39676,17756,44849,24412,6782,45051,18279,44674,44765,34194,45567,44861,44894,44869,28313,13425,31354,44745,44739,44848,30963,44766,3883,44685,13,45229,17009,14622,5259,30135,44866,24441,8753,18042,6875,44762,37267,18446,17904,44845,17556,45515,17839,17351,4686,45262,45072,17703,45180,18981,18572,24411,17848,44837,45518,44767,44855,44851,18172,44873,18286,28530)
Unknown column 'np.person' in 'where clause'