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 (6609,18648,45517,44868,18996,14622,30963,18042,44853,18981,18353,18172,44858,45516,44867,44767,45042,18572,5388,43800,44865,37267,18427,44766,13922,34194,17278,28530,17335,24441,44768,44739,13,44531,17492,18301,4686,36472,24438,17009,31354,45229,44669,44894,18430,17835,17904,24411,17527,22509,17839,44845,44775,44873,44861,44689,37057,18185,45177,45561,18794,17657,44884,17771,3883,17351,4765,44711,18237,18900)
Unknown column 'np.person' in 'where clause'