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,44836,44853,45515,6875,44873,19057,18996,17756,9341,39676,18172,13922,45042,44849,17092,44531,18652,3883,17351,14622,45561,44745,18237,18353,44765,17703,45421,13988,44866,37057,17835,14402,6862,45262,18794,17237,17009,44640,17278,17335,18719,43800,18286,18427,10402,18648,44845,17492,18430,17527,17114,44674,18279,44858,44669,44837,44764,17839,13,44854,24438,45346,44884,44863,45286,16935,30963,44739,18572)
Unknown column 'np.person' in 'where clause'