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 (45517,9341,18237,22509,16885,5410,44837,45286,24411,44855,44640,44866,44853,17556,34194,44869,44775,44764,17092,17009,30963,16935,13425,44868,17755,44711,44863,18446,6609,24438,17527,45567,4686,45180,3,44849,43800,44531,18652,45177,17114,17351,18794,10402,18301,45561,44867,17657,19057,45262,18900,18572,45277,44875,17601,28530,17278,17771,18427,17839,44835,44762,44671,44848,32454,44873,5259,13988,18688,17237)
Unknown column 'np.person' in 'where clause'