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 (44866,45042,44739,18894,24441,45421,17839,44671,44775,18279,45561,3,43800,44858,24438,44765,13,18237,18286,32454,44845,6609,17278,45072,45515,17657,44687,10402,17527,44674,5388,8753,17492,45567,44894,13988,17981,16885,44762,44868,45180,17237,37267,17009,5259,18981,18900,6875,17601,44767,44766,30963,44849,44689,18301,17351,24412,37057,44764,18185,18172,45286,34194,18650,44854,44531,44875,18648,18652,44837)
Unknown column 'np.person' in 'where clause'