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 (17278,44689,18719,13,5993,3,18279,34194,4686,45421,30986,17848,24441,13425,18427,45051,45042,45517,17009,44687,17981,44870,17556,44868,44531,44739,44861,6782,18286,17839,44845,45516,13922,45043,17527,44851,45229,19057,44767,44765,44853,24438,44640,18900,44836,44837,5388,45277,24411,17351,44849,17771,45518,18237,18794,17835,30135,30963,18652,18353,31354,45515,9341,32454,37267,24412,16885,44863,44745,36472)
Unknown column 'np.person' in 'where clause'