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 (44884,18172,24412,44854,45567,16885,45517,45229,45180,39676,17904,17835,45042,18301,30963,3883,44856,17703,14402,19057,13425,18237,44851,45515,13988,8753,44765,44669,45262,37267,17839,44685,44766,17756,36472,4686,9341,17237,18688,18894,44764,45051,5993,6782,45177,44855,44689,17601,44845,18794,13922,44853,17492,5388,18353,44745,17556,18446,45516,44865,44837,14622,37057,45518,6875,34194,44866,18652,28313,43800)
Unknown column 'np.person' in 'where clause'