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 (18446,44863,45043,44853,45518,44762,44669,45346,24412,18719,13922,16885,17278,16935,44868,6782,30986,18794,17981,18353,18652,24441,17492,44767,44640,17114,24411,44845,44836,18430,44671,45515,9341,45421,44878,17703,18042,5410,18996,18427,44739,14622,45277,28530,6875,31354,30135,30963,45051,44848,13,19057,36472,44531,44873,44858,17848,45262,18650,44674,43800,17527,44765,17092,4686,17009,18572,8753,17556,5388)
Unknown column 'np.person' in 'where clause'