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 (5388,44762,44884,44685,44851,44674,45515,14622,44765,44867,44689,6609,18648,18894,4686,6862,6782,17771,45567,45561,18185,18237,3883,24411,9341,18794,30986,44836,44669,18172,32454,44861,44894,45072,45518,44863,22509,17527,16885,17835,17839,17703,44870,44866,45042,17601,18572,44711,17556,17237,4765,13922,19057,17657,45051,43800,44767,5259,44873,17114,44854,44687,34194,18719,44875,18446,39676,5410,17092,44640)
Unknown column 'np.person' in 'where clause'