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 (44861,28313,44866,17092,30963,44837,18042,32454,18430,44689,45177,44853,18996,44875,44856,24411,39676,4686,44878,17839,17351,30135,18688,17009,17492,44848,44739,17835,17114,45515,14402,18427,44685,16885,17848,44849,44867,44765,45262,13922,44873,44531,37267,18237,4765,18353,44835,44858,34194,17703,44711,22509,44768,44870,18446,45180,44640,44854,18172,31354,44836,44671,37057,17601,45072,44851,45518,44869,24412,18650)
Unknown column 'np.person' in 'where clause'