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 (19057,44878,24411,14622,18981,18652,18688,17092,44849,44669,18301,30986,6609,44869,17771,17492,4686,13425,44845,5259,44836,44687,45043,9341,44853,6875,17351,18572,6782,5993,44531,44854,17527,10402,44875,44861,45567,30963,5388,17556,44867,44685,16885,34194,44640,44835,44863,17835,24441,44739,17756,45516,44866,24412,30135,24438,18185,4765,13988,45072,16935,44868,18427,17848,44767,45515,13922,44762,45517,44764)
Unknown column 'np.person' in 'where clause'