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 (17601,44858,44837,13425,17092,9341,18185,45229,28313,3883,45516,17114,17351,37057,45286,45262,39676,13,45567,18900,44863,44766,18650,18719,13922,18648,18688,44853,17009,17703,18652,44854,44669,44687,6609,14402,30135,30963,17657,22509,17556,18794,6875,44873,17904,44768,44868,5388,44835,44848,10402,17755,17492,17771,3,18172,45072,18446,45051,34194,17237,18996,18286,45042,24441,16885,44855,14622,17278,44640)
Unknown column 'np.person' in 'where clause'