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 (44845,44869,44866,6862,44861,45518,44894,18353,44870,44851,5410,17657,30963,44669,18719,37057,44835,32454,44739,13922,19078,18279,18185,18900,44854,24438,13425,17237,18688,18794,44836,37267,18446,28313,44837,17009,31354,44858,44855,13,18981,44711,5259,36472,44689,18427,45515,14622,6875,44878,44687,45229,24412,43800,45277,18042,45421,17114,45177,44868,44865,44674,14402,44685,30135,19057,45043,28530,45262,45567)
Unknown column 'np.person' in 'where clause'