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 (24411,37057,44711,44851,17527,6875,18042,24412,5388,18185,17848,18719,17114,44875,17351,45051,45515,44868,44671,45516,45421,18996,45180,17009,18652,45286,44884,44640,17092,13425,19057,45042,44894,32454,44669,3,44685,44861,44837,18237,18172,18688,44853,17703,44775,3883,17835,5410,16885,30963,44848,31354,45177,45518,18430,9341,44865,44858,44762,44854,17601,44764,44845,44836,8753,13,18446,44689,44745,18894)
Unknown column 'np.person' in 'where clause'