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 (18185,13,18894,5388,17981,17657,45072,17351,17492,45262,6875,22509,44884,45517,45229,19057,45516,44711,45286,17237,18237,44875,44685,34194,16885,28530,44835,45180,4765,44745,18042,17009,8753,44853,44531,30986,45346,18279,18794,44854,45042,4686,44861,44848,44669,44866,44878,44851,37057,18650,17848,45515,45421,44894,13988,16935,17835,44845,19078,44687,44739,6609,3,31354,39676,18446,45177,17601,45567,44837)
Unknown column 'np.person' in 'where clause'