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,18688,17904,24411,6609,44640,44868,45262,45421,17278,19057,17009,18446,28530,44878,17601,45516,43800,5259,44531,44836,17771,17755,45561,44711,10402,45567,39676,44849,44685,45043,9341,17351,44739,18900,24412,18172,28313,30963,45072,44894,18650,44870,44687,18427,44837,44854,16885,44689,45229,24441,44835,18894,45051,44766,44765,17657,18719,17335,34194,4686,32454,36472,44767,18237,5993,18279,13988,44861,13)
Unknown column 'np.person' in 'where clause'