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 (45051,44863,8753,44851,17657,3,44837,37267,44687,18286,18172,45072,44884,17556,9341,44671,18981,4765,18794,44835,17009,44848,44854,44858,18353,45043,44640,44762,44869,45286,18650,44866,30135,18719,13425,44669,17335,18427,13922,45180,18446,13,18279,44764,37057,44855,44867,45516,28313,17755,6862,30963,22509,16935,17771,44711,45262,24411,17278,44836,18652,44766,6875,44878,17237,44865,5993,44875,18900,44685)
Unknown column 'np.person' in 'where clause'