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 (44875,45346,17009,17839,45518,44671,5410,36472,14402,5993,37057,44853,17771,44739,45042,9341,45515,22509,44866,13922,18572,17527,24441,30135,6609,6862,14622,18237,24438,44836,13988,44856,30986,13,44835,32454,18900,17335,17601,44855,44884,17351,28313,30963,44869,44765,44766,45262,44768,17657,44870,17848,17904,44849,5388,6782,44863,44764,44711,44845,44685,10402,4765,45516,44878,18446,3,18427,8753,44868)
Unknown column 'np.person' in 'where clause'