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 (18648,44878,18353,18650,44689,44835,44739,18996,37267,44866,17848,32454,44894,30135,44766,18279,13,45180,44870,45516,13425,5410,17237,18286,18900,31354,19078,44848,34194,17835,13988,16935,43800,44674,17703,14622,18446,6782,17756,17527,44849,3,45518,45421,18185,17755,44865,44711,37057,18042,44853,17771,44863,44854,44837,17114,24411,5993,45072,5259,45286,45517,39676,28530,44685,44687,44669,9341,45561,44768)
Unknown column 'np.person' in 'where clause'