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 (44689,45229,31354,18719,44856,17492,6782,45421,44845,8753,45042,17009,44836,45051,30986,10402,5993,37267,19078,17848,45180,6609,18688,18353,17835,44739,44854,44858,17114,45515,9341,4765,18446,44873,44767,24411,3,45346,45567,19057,45262,44868,13922,17278,28530,36472,44640,44669,22509,39676,17839,3883,45517,18286,24412,45177,45043,17771,44764,44674,17755,44884,18279,14622,18172,24438,18572,44835,44853,28313)
Unknown column 'np.person' in 'where clause'