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 (13988,18719,22509,45561,44674,44845,43800,28313,45277,44870,44765,18900,18042,18688,45051,6609,17657,5410,45262,45515,5993,37267,16935,13,24438,17756,14622,32454,30135,17009,39676,17556,44855,45518,31354,18981,45286,44894,44869,44835,5259,18353,18301,4686,45180,44884,18446,17703,44866,44849,45421,44687,5388,6875,17335,17771,17839,18237,44856,36472,17351,44767,44848,44878,44685,44868,44853,17981,44837,16885)
Unknown column 'np.person' in 'where clause'