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 (6875,14402,44768,17981,44745,37057,44868,45421,18688,44685,24411,17009,18301,45561,24438,19078,3,16885,10402,17657,44767,44865,44884,13,44687,45229,18648,24441,18427,9341,17756,45517,45051,32454,36472,13425,44837,17237,44836,18650,17835,44853,44689,17848,17601,17351,18172,45043,45286,44762,44848,44775,6609,18237,5993,44835,5410,18446,24412,4686,18981,18042,5259,44858,17278,44878,17335,44873,18572,17904)
Unknown column 'np.person' in 'where clause'