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 (24441,44863,5993,5259,18427,18430,18996,17703,44866,24438,34194,44739,45517,3883,45518,17601,45180,10402,44869,44865,4765,16885,44531,17114,13988,13,18172,3,32454,17756,18237,14622,44867,24411,45042,45421,44851,9341,18652,6862,18446,44854,17835,45262,45516,44861,13922,5410,17755,44836,44837,44640,6875,30963,44687,24412,8753,18688,45051,17771,5388,45277,4686,17492,30986,44685,44762,44674,17092,45043)
Unknown column 'np.person' in 'where clause'