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 (44869,18286,18430,44863,45516,24412,17657,37267,18900,13922,45180,13988,17092,45421,44854,17492,3,45277,44870,18572,17771,44531,44669,19078,17756,36472,45346,18301,44837,44861,5259,18279,44851,5388,44894,45286,16935,18650,4686,13425,28313,18185,6875,45262,44766,44884,17755,30135,44685,14402,45051,18237,18688,45518,24441,18996,44739,18794,44640,18648,34194,17527,44689,43800,18172,44836,28530,44768,19057,45042)
Unknown column 'np.person' in 'where clause'