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 (43800,44671,18648,44861,17835,44837,45516,45043,17114,16935,19057,17703,13988,45286,44855,44851,18237,44873,17556,18172,18427,44767,5410,44858,3,44531,18572,34194,5388,44853,44894,44674,17351,19078,30963,18042,45072,18688,31354,9341,6875,30986,18996,44640,6609,18446,44745,44768,17335,13425,44849,44870,44689,18286,28313,32454,17278,3883,18719,24438,18353,16885,44884,45180,17981,44835,44854,45421,44766,18894)
Unknown column 'np.person' in 'where clause'