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 (44836,3,18430,45561,17771,43800,9341,18172,44854,22509,4686,45229,45346,10402,4765,17904,44685,14622,36472,44875,17092,18446,37267,28530,13988,44863,17492,17657,44762,44869,28313,5259,17755,44669,44870,18652,17981,44671,18427,44894,44845,45515,3883,5410,18185,18353,17839,18688,17114,17527,31354,17351,45518,44851,32454,45277,44865,45180,44884,39676,45177,18894,13,44711,16885,17601,44531,13922,44853,45421)
Unknown column 'np.person' in 'where clause'