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 (44762,18446,13425,44766,3,30135,44531,45277,17981,24441,44856,44687,28530,8753,45262,17839,17009,18353,13988,44853,22509,18894,44867,18185,18688,5388,17755,44858,44884,44878,44835,45051,44894,10402,44861,44855,17335,44869,37267,24411,44836,18042,44854,17835,37057,45180,44865,17092,44767,24412,18237,39676,17351,45561,34194,44685,44775,17278,17556,44851,17237,44739,18996,43800,45177,16885,36472,17492,44848,17527)
Unknown column 'np.person' in 'where clause'