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 (18688,14622,44845,5993,18237,5388,6782,17335,16885,16935,18981,44836,22509,28313,44687,17114,13988,8753,45051,44685,45561,44764,17527,44878,17981,6875,45515,44868,18996,44765,45229,24438,37267,18794,44739,17278,30963,24441,18185,18286,17556,45072,44863,3883,18301,44858,45043,17237,19078,5259,45518,44884,17904,17755,5410,44848,18650,45517,44669,18446,44835,3,13425,17092,37057,45262,24411,36472,17351,14402)
Unknown column 'np.person' in 'where clause'