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 (18446,44845,24438,44863,9341,4686,5410,45518,36472,44894,19057,19078,14622,44867,24412,16885,6782,30986,17114,18719,44851,17755,45262,4765,44869,18286,45043,44861,24441,18172,44711,43800,44875,30963,44640,44689,18185,45567,18652,13425,44884,17657,31354,13988,18353,44837,17556,44531,17237,16935,44865,44767,14402,44765,18279,44739,45421,44671,45561,44853,17835,17335,44762,44855,45515,18996,44685,44835,18794,18427)
Unknown column 'np.person' in 'where clause'