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 (44868,44640,17601,18894,4765,6782,44867,45051,3883,44685,44866,17237,44711,18172,17771,17703,18446,19078,44873,24441,44861,44835,17278,44531,18353,44853,44765,18719,45277,24438,44856,45043,18301,17755,5259,36472,17981,24411,44767,45180,44762,13922,44669,45286,16885,44851,44745,19057,10402,17351,9341,6875,18279,44836,44863,31354,45072,44849,44845,44764,18185,45561,43800,44858,44848,28313,3,44775,44837,13)
Unknown column 'np.person' in 'where clause'