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 (18042,18648,24412,45515,44869,44848,30135,17904,17657,17335,44767,17278,32454,24411,17839,45262,44858,18572,5259,44531,9341,36472,45286,44836,17492,16885,17237,18996,18894,44640,44689,44884,14402,28530,44873,5993,44669,44875,44863,19078,44685,44687,45561,18719,44856,17755,28313,37057,5388,44711,10402,44851,16935,8753,31354,18301,18185,18900,45567,17981,45042,18688,30986,18427,43800,18172,18446,44671,17556,45177)
Unknown column 'np.person' in 'where clause'