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 (3883,9341,17703,44766,17848,6782,39676,44873,13425,16885,44869,5259,44867,44863,44848,3,17835,43800,44851,44531,19057,18446,44836,17492,44762,18042,44711,44835,17755,32454,45229,45286,44866,45567,18900,45042,44837,28313,17601,44687,45262,17771,30135,13922,17114,45515,17527,13,45561,31354,44854,18996,44853,18688,34194,45516,5993,44875,37057,18430,17351,30963,44671,44845,8753,4686,18237,17904,19078,18279)
Unknown column 'np.person' in 'where clause'