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 (18353,6862,18172,45561,45229,18688,30135,45346,45567,17351,44858,44848,44711,14622,44869,45517,44865,18042,44853,44739,17556,17278,44866,44849,36472,18794,24412,17092,45518,44873,44836,22509,17657,10402,28530,45516,43800,18900,6782,44766,44768,19057,44531,18650,44765,18648,17771,34194,24438,44687,44878,5993,44685,5259,17114,44894,37057,44835,45286,4686,18427,13922,45515,44870,9341,13425,6609,5388,45262,18446)
Unknown column 'np.person' in 'where clause'