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 (44689,18572,4765,17771,45516,10402,24441,17351,17657,44845,45051,18237,43800,5410,44687,17756,44768,44762,44671,44856,44767,44873,18652,36472,14402,17601,5259,44531,22509,19057,17114,17556,44855,30135,45515,17527,44775,17848,45346,14622,17009,44674,45177,45262,13,3,45042,44861,45421,37057,16935,9341,30986,18172,5993,3883,18981,44851,32454,44739,45229,44868,44849,19078,5388,44848,18286,18279,44884,44854)
Unknown column 'np.person' in 'where clause'