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 (44856,45043,44853,44873,44764,44685,44711,44674,44835,44851,44845,10402,17657,44868,44848,18427,45517,17351,44849,17981,17835,17527,44894,18286,44687,24412,24411,45516,16885,43800,28313,6862,18172,44866,44739,44531,17601,44775,18894,17114,6782,45051,17839,17848,28530,17756,44671,18301,5388,30135,17771,13988,18042,45277,45515,30986,17904,19078,17092,44836,17237,4686,17009,6875,13922,45567,44870,44689,44858,24441)
Unknown column 'np.person' in 'where clause'