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 (44861,44849,44851,45421,44836,17981,10402,30986,45517,24411,13922,28313,39676,45262,18894,44854,6782,32454,28530,17335,37057,18427,44745,34194,45180,17657,18237,8753,17839,22509,17703,45516,17904,3883,44875,9341,44845,44685,17527,18900,45042,44764,44855,19078,44762,13425,18172,44837,45561,37267,18301,45286,17278,44868,44867,24412,17601,24441,44853,44894,45277,19057,17114,18286,16935,18446,13988,5993,17009,5388)
Unknown column 'np.person' in 'where clause'