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 (18650,45516,45177,45262,18427,28530,5388,44854,44685,37057,45043,17114,22509,44865,18648,45567,44873,44870,44674,6875,44766,17771,45421,44640,44531,17904,44669,18353,44869,17755,18794,17848,18237,19078,28313,44875,6609,44858,44764,5993,44767,17335,44855,24411,45051,44836,44835,45180,17703,4765,45286,17492,45277,24412,17237,13988,44845,45042,18172,45229,17092,18688,17839,9341,16885,8753,18572,6862,17601,44739)
Unknown column 'np.person' in 'where clause'