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 (18172,13988,24438,44745,44849,45421,44689,44868,17278,18648,44766,44866,34194,44739,45516,44531,13922,44873,44762,44858,17009,5410,45262,14622,45051,31354,5388,18894,18446,24441,43800,16935,6875,17556,44764,17848,45561,16885,18286,17335,17839,24411,28530,44878,18900,13,37057,17114,17981,4765,44671,17237,18353,44875,6862,44685,18042,44863,45177,44853,45517,45346,18794,44775,45180,19057,44851,45515,22509,17657)
Unknown column 'np.person' in 'where clause'