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 (24438,44894,18446,44863,44775,28313,18042,13988,45072,44762,17351,6782,5993,17756,44884,44764,44851,17278,30963,31354,44687,3883,17848,44837,17835,14622,44858,8753,45051,30986,22509,44853,18279,18648,36472,17703,44685,17657,44869,17601,17904,4686,34194,44848,45286,45561,44845,44531,24411,45517,19057,44767,45229,44878,6875,44765,17492,44856,45180,39676,44766,18894,44835,10402,18996,18900,18237,44669,44711,45043)
Unknown column 'np.person' in 'where clause'