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 (18652,44739,28530,44878,44766,18719,44858,24438,18353,17755,24412,44854,45229,17601,24441,18427,44674,18688,34194,17657,6875,44762,43800,37057,44875,24411,18430,17703,44863,44671,17351,39676,45421,18172,3883,13922,44894,5388,3,19078,31354,44853,44685,45042,44865,44837,4686,16935,45516,18794,45286,44884,17527,44689,13988,6609,17771,18042,44765,18446,17278,17114,44711,44836,45518,9341,44870,4765,44856,44669)
Unknown column 'np.person' in 'where clause'