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 (44687,44775,4765,45042,17009,44531,10402,17839,3,37267,44863,44739,44875,45051,45262,17756,44674,44894,18688,17601,13922,5993,44861,44837,44765,17755,17527,18794,44685,18353,34194,44845,16935,44762,44768,22509,39676,45516,45515,19057,44849,44878,17092,45517,18172,17351,13425,18648,44745,17335,17114,24412,28530,30986,17904,5388,45177,19078,45286,18237,44835,13988,44853,18430,24411,14622,44711,45043,24441,28313)
Unknown column 'np.person' in 'where clause'