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 (18446,5259,44855,44764,6875,14622,18301,17351,44687,44866,44884,44873,44745,24441,45567,30963,24438,30986,44837,45515,45262,44671,6609,45421,13988,18650,18353,28530,45518,44765,18648,18042,22509,37057,24411,45516,18996,45346,18172,45517,6782,18652,17771,44878,44640,37267,44894,44775,3883,17839,44870,44669,19078,18430,44875,18688,17835,13922,44711,44867,16885,18185,44863,5410,17527,45180,19057,17556,17756,39676)
Unknown column 'np.person' in 'where clause'