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 (45072,44837,44531,13922,5993,36472,44775,28530,18996,30963,16885,17839,17237,5259,10402,8753,45518,30135,18185,44869,30986,18286,17657,31354,44855,4765,17756,44685,45042,18794,18042,44854,44870,44739,17351,44669,44640,13988,45421,44875,16935,19057,22509,44853,44762,18237,13425,44845,37267,24411,18652,18301,45180,17848,34194,6862,44674,17335,44856,6609,24438,45517,45277,44767,44835,18430,17092,45229,45567,17904)
Unknown column 'np.person' in 'where clause'