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 (44768,18237,17703,4686,44873,18301,18286,18794,44853,28530,45072,24411,16885,17114,18648,44762,45051,45180,19057,13988,19078,13922,44764,17904,18996,6782,44851,45177,17657,18688,44531,17755,45518,45515,18042,30963,44863,3883,44848,44875,44640,44865,22509,45042,17771,44837,17756,44687,18427,44861,44868,13425,16935,44894,44711,44836,44669,36472,18650,44870,34194,44685,45277,17278,17092,44867,17556,45567,30135,17351)
Unknown column 'np.person' in 'where clause'