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 (44835,28313,17335,18279,17009,17657,44762,44845,44863,17835,18996,24441,44878,19057,24438,45517,45561,44853,31354,24411,22509,13988,3883,18688,37267,45516,44856,17351,17756,44768,45286,18652,44849,18719,30963,5259,45262,34194,18427,45042,44711,18648,17755,44687,44640,24412,30986,44765,44894,44870,44854,9341,45051,14622,6875,17771,5993,45177,13922,17848,18301,44669,30135,16885,44766,16935,44764,44858,44884,45277)
Unknown column 'np.person' in 'where clause'