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 (5410,44531,44671,17848,43800,44884,18301,17527,45051,45177,44848,18353,44768,44669,17601,13425,24441,18894,5388,37057,44856,18794,17981,44854,45043,17009,18900,17492,24438,45277,18042,17278,13988,18688,31354,18427,18650,28313,44685,45515,13,44849,44767,6862,17351,44894,44764,44689,18430,44861,30986,19078,44851,44835,44836,14622,45517,18446,18996,3883,9341,45516,24411,17092,44870,44640,18237,36472,44853,44739)
Unknown column 'np.person' in 'where clause'