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 (45286,14402,17237,24441,18894,45180,18301,44869,17601,19057,45043,44689,18648,17492,45229,17278,31354,30986,18652,13425,44835,37057,17981,44767,44711,17835,44745,44866,44836,4765,16885,44640,17092,45042,44739,44845,43800,34194,18688,6609,18353,44854,44868,3,18446,44768,44531,13922,45346,17556,45277,17009,17755,39676,28313,14622,44870,22509,5993,8753,5388,44884,24411,3883,17848,17527,18185,44851,45517,17904)
Unknown column 'np.person' in 'where clause'