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 (45042,14402,32454,45567,19057,44640,17114,9341,10402,6782,24438,45517,34194,44671,17335,18042,3,17009,44775,44884,44835,30986,17351,4686,44866,30963,44762,5993,13,44851,8753,18301,13425,18996,45421,17492,44745,18719,30135,18172,44868,44689,18353,19078,17755,45177,36472,17278,44875,44669,18237,44869,24412,17601,43800,17092,28313,44674,44856,6862,44687,37057,39676,18688,16885,14622,44837,44685,44870,37267)
Unknown column 'np.person' in 'where clause'