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 (45042,45262,44869,39676,17278,44745,44865,17755,17657,17351,44873,44767,30986,5388,44531,18237,44884,18794,24411,44855,18650,44851,44848,9341,17335,45072,17848,44875,45180,44768,45286,18430,45421,44669,17092,17492,3,45561,5993,17237,8753,24441,45515,18648,44835,6609,45229,17601,44866,44674,44854,18286,18996,44861,44739,44764,45517,30963,18981,44685,44837,17771,24438,37267,44762,44687,13,13425,18301,44894)
Unknown column 'np.person' in 'where clause'