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 (44858,44875,18430,18996,9341,24438,17278,44865,17556,17904,45421,44711,18688,45229,45042,31354,45051,44873,6609,24441,17009,18286,37057,17335,44861,5259,4686,22509,44745,18719,13425,45180,45515,18185,17848,45518,45177,44739,44766,45277,44531,17755,17601,17492,19057,44674,45517,17756,18794,16935,44856,8753,45561,18042,14622,18650,18237,44884,45567,44855,30963,44853,17835,44870,45286,44848,13922,18172,44669,44835)
Unknown column 'np.person' in 'where clause'