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 (18042,18286,45518,17848,45042,18427,18172,44711,10402,18446,44849,44869,6609,17527,44767,37267,28530,44674,44855,44873,45043,18430,18648,44768,44845,44689,44640,44858,44762,5388,18900,18652,44531,5993,44764,24412,17092,45515,17839,17981,44837,17556,45517,17755,14402,3883,19057,44669,24441,17237,5259,13425,19078,44870,44875,28313,45177,36472,45421,45516,17114,17756,44745,18237,17492,5410,37057,17771,24438,18794)
Unknown column 'np.person' in 'where clause'