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 (18185,6862,18427,24441,24438,45180,3883,6782,18688,45286,3,18237,18172,13425,44837,30963,44851,44854,43800,44870,18981,17278,17839,30986,18794,44835,44848,5993,44878,16935,5388,6609,44767,45421,18900,37057,44884,45043,17601,13988,45517,17527,18430,44894,44853,45515,44766,44671,22509,17848,17756,17335,44849,24411,44687,18719,17114,45518,28313,44869,13922,18572,44873,44768,39676,18286,44861,44845,17657,37267)
Unknown column 'np.person' in 'where clause'