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 (44848,18981,32454,44687,14402,16885,44854,18688,9341,44869,44851,44873,44863,45516,8753,6875,18286,17703,24411,13425,28530,18237,17556,45517,17848,44685,39676,19057,17981,3,5388,5259,44640,16935,44768,19078,45229,44674,24441,24412,6782,44764,17237,45286,44835,43800,44845,17771,45051,44711,18652,44884,18427,6609,36472,6862,18719,44775,37057,34194,45177,44766,44669,44858,45421,24438,44894,17351,31354,45346)
Unknown column 'np.person' in 'where clause'