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 (45229,45262,45072,17771,45043,18237,17114,44739,3883,45517,18794,8753,44837,44870,45516,24411,44856,17009,30986,24441,37267,18894,18446,19078,18353,44836,44531,19057,17601,6609,17492,18301,44863,6875,44855,17556,32454,17335,9341,44884,18430,5259,34194,16935,28530,17904,44894,45346,44775,45051,18185,44858,45277,18279,13,28313,45518,17835,17657,44835,44687,31354,37057,44861,44711,44866,14622,44640,18719,13425)
Unknown column 'np.person' in 'where clause'