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 (6875,16935,18900,45229,17703,17492,18279,17771,4765,18688,44762,18894,44685,45180,13425,18719,44687,44866,44878,44894,36472,44870,18427,44764,44531,45516,17755,44873,37057,44854,9341,13922,44867,44853,44869,44855,30963,3883,44875,18430,17335,45262,4686,34194,19057,44689,6862,44851,18286,17114,18446,45177,18172,45421,45518,18794,45072,17601,28530,17904,44848,18237,17657,18353,44640,44865,17848,45277,5388,18648)
Unknown column 'np.person' in 'where clause'