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 (44858,17755,18650,34194,44835,36472,13,18981,43800,18572,44851,18042,44739,18172,44875,18894,45277,17839,44671,17009,44767,17237,44531,45517,44867,44868,18353,18719,17981,44775,44856,44674,44768,45516,19057,18446,18427,18794,44884,44836,44845,32454,37057,17848,18430,45229,39676,5993,44685,6875,5388,17601,44745,45421,5259,44869,17092,44853,18648,17351,44863,17278,44870,13988,30135,45346,18279,44765,18185,44711)
Unknown column 'np.person' in 'where clause'