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 (13922,44849,17351,16885,44866,44687,45277,44848,17556,4765,18279,44640,17278,5993,14402,45286,18172,44835,17657,5259,45561,5388,44836,45229,44873,18446,37057,44869,18652,4686,45177,44767,44894,17756,44854,18042,44884,44674,18719,17848,44764,17114,17492,44765,45518,45180,6782,44762,44870,22509,45567,10402,36472,44875,44671,3883,17237,28530,44855,13988,18427,39676,45516,17009,44689,44669,44845,44867,44739,45072)
Unknown column 'np.person' in 'where clause'