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 (45072,18042,5993,44531,6875,17351,17556,8753,44894,44845,44836,10402,44856,17492,19078,45561,44868,17657,24438,44873,24411,44855,39676,45515,28313,17114,17601,18894,13,45262,17092,18650,45421,44863,45517,17009,5259,44851,44884,18301,17981,44853,32454,18353,30135,44768,44685,43800,44848,44640,45177,16935,14402,18996,6782,16885,17835,31354,44866,3883,18185,24412,45286,18794,37057,44762,19057,45180,5410,44837)
Unknown column 'np.person' in 'where clause'