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 (44687,17771,37267,45517,44689,44855,18237,18648,45177,45072,13922,44849,3883,44711,18353,45262,45518,8753,18996,24438,4686,44878,22509,6782,44640,9341,44739,17335,44866,18650,44766,44835,24411,13425,44674,17755,44765,17657,17278,18688,17848,44894,45516,18900,6875,24441,18430,30135,24412,31354,44851,45286,17981,44764,44767,32454,44853,45277,43800,45229,18981,44873,19057,17492,18652,45346,34194,28313,17756,44865)
Unknown column 'np.person' in 'where clause'