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 (30986,18353,18279,6782,13922,45072,17351,44745,5388,14622,44853,5259,18446,44884,44861,45421,18042,37267,17981,44878,24412,44854,18572,44868,44865,45516,44669,45277,18650,44875,18688,45518,44835,44640,3,18996,44768,18237,44689,18185,44873,45286,30963,18172,19078,17092,17556,45515,45262,43800,13988,44766,8753,28530,13425,10402,17657,44866,16885,17278,44869,44739,18794,44767,44855,14402,17527,44531,44867,45051)
Unknown column 'np.person' in 'where clause'