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 (30963,44851,44845,44640,44867,45043,13988,44875,4765,45229,6862,45180,44869,44674,18794,17278,45421,44855,24412,44884,6782,18996,44894,17492,18353,44878,22509,36472,44766,44873,44531,17848,44861,30986,17756,18652,17839,39676,44849,44868,37267,34194,16885,18286,28313,18427,17904,5993,18430,45072,5410,13425,24411,18446,13,44711,44856,45567,28530,44865,18172,44685,44764,44835,44870,17114,44775,44854,17657,44858)
Unknown column 'np.person' in 'where clause'