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 (44669,17756,44689,44894,17556,18719,13988,45517,18286,18572,17755,18981,24412,45516,18446,17351,17492,17835,44685,44884,17839,44762,45072,39676,45421,17237,44640,44837,24411,45567,22509,6782,44711,13922,45515,19057,5388,30963,44856,45286,18996,24441,3,18652,18794,44854,17527,44836,44765,44687,44674,45051,45262,44845,18237,16885,28530,17657,45346,44878,18172,6875,45277,13,17092,17771,44853,45518,18185,6609)
Unknown column 'np.person' in 'where clause'