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 (18688,45043,31354,18430,45180,17351,18572,17981,44739,44873,44870,44858,18794,18042,45346,17835,28530,18172,44854,44835,45042,18981,37057,18652,44848,24412,37267,6875,44531,17335,14402,17755,36472,18648,17092,45229,45518,44711,44837,44863,14622,24411,44884,39676,45286,3,19078,17492,45177,44851,44745,18237,44674,6862,45421,45072,8753,4765,34194,6609,18301,30963,3883,44640,44836,43800,44767,17114,5388,18900)
Unknown column 'np.person' in 'where clause'