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 (24411,18648,18353,45286,17835,18894,17703,18652,13425,17755,44837,44869,9341,44640,17771,19078,13,44875,44856,45567,5388,18301,44861,30135,44853,34194,45042,3,45051,4765,19057,44878,17335,44775,13988,44870,44865,44762,45180,45517,6862,17556,37057,18279,44764,44884,44851,44836,17009,45072,18650,4686,6875,44894,44845,24438,28530,18427,17351,18688,44849,24441,44674,24412,44669,5259,10402,17657,44687,3883)
Unknown column 'np.person' in 'where clause'