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 (24411,45516,45051,45229,44861,22509,44875,36472,45043,44835,14622,45072,18794,18427,17527,44845,28530,18279,44866,17835,13425,44671,34194,45561,18900,9341,37057,5410,45286,44873,17848,44739,31354,44775,45421,18172,18688,44853,13922,18237,17009,44837,44848,18996,14402,18301,30986,18648,44711,44685,17114,44669,44863,17092,18042,43800,30963,44640,44855,28313,44854,18572,18981,10402,45177,44765,17351,45042,5388,44531)
Unknown column 'np.person' in 'where clause'