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 (43800,45517,18430,44711,18996,5410,17237,44845,45229,44858,17657,30963,18981,45043,18572,22509,17703,44671,3883,18648,45421,17848,37267,45072,30135,4686,18042,6862,18286,44766,45042,44869,44873,18279,44851,45177,44867,45567,44762,44739,44768,24411,45277,45518,13,44870,17092,34194,14402,44674,5388,44863,44775,6609,8753,44855,6875,44854,32454,4765,18237,44835,44689,44669,44884,44685,17492,18894,31354,18353)
Unknown column 'np.person' in 'where clause'