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 (34194,44851,30135,44640,45042,45567,44835,37267,18572,44863,44836,45043,10402,18237,17556,18794,17771,18185,13922,17527,44884,45229,16935,18286,44866,17114,45518,6875,5993,44739,44685,45177,3,43800,17981,24411,6609,18427,5388,44894,18894,31354,28313,32454,18981,44745,44689,5259,44858,44768,44767,18900,8753,17492,44878,28530,45346,44669,37057,17351,18688,44765,19057,45517,6782,45180,44671,44875,18353,44865)
Unknown column 'np.person' in 'where clause'