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 (44853,44866,18572,17601,45561,24441,44739,18688,44765,17492,32454,28313,30135,28530,45042,44848,43800,45277,17657,44766,16935,24411,17755,3883,44669,44837,18301,6782,17771,45043,44835,44531,45072,17092,5993,44767,5259,4765,8753,18981,18279,18237,45518,31354,6862,45421,30963,44878,44861,24438,17114,17981,14622,45229,17278,18446,44764,44870,17335,45180,45517,44685,44875,6609,22509,18430,44868,17556,5410,13988)
Unknown column 'np.person' in 'where clause'