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 (44762,17092,17755,5410,30135,45072,13,44845,13988,36472,3,45346,22509,6875,19078,44711,34194,45262,31354,44669,44768,24441,18042,44875,18446,45286,44853,45517,45567,45229,24411,4686,44687,45515,17335,45180,6609,44764,24412,17351,18981,17278,44868,32454,18719,44765,44863,30986,39676,13425,44855,17237,44689,17527,5993,13922,44835,44884,44640,17771,28530,45177,18688,17657,45518,18794,4765,45051,44745,44869)
Unknown column 'np.person' in 'where clause'