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 (18652,18446,44845,17839,13425,45043,18894,18353,9341,44853,44855,28530,17335,37267,18185,17278,24411,17009,31354,44858,13922,17756,45517,44836,44867,44863,44640,13988,37057,44861,44711,18996,44894,45042,30963,17092,45229,30135,44873,14622,44865,18572,6862,45051,44739,45346,24412,14402,17237,44687,24438,44531,44854,16885,4686,13,45561,18042,44835,44764,45286,18172,18279,17527,44848,45262,44669,44837,6609,44878)
Unknown column 'np.person' in 'where clause'