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 (44671,44767,44875,44669,44845,44884,44765,45517,18650,44685,44863,44866,45421,44869,44837,45561,44858,44873,44687,44775,17237,45177,14622,17839,24438,17009,18279,36472,17703,24441,17092,24411,18042,18286,17527,17278,44531,22509,17492,45567,13988,16885,17848,4765,6875,6782,6862,44848,44674,44766,13922,30135,10402,18446,45515,8753,17835,30986,44689,44849,17904,18172,45043,18996,44894,44868,28530,44640,44878,17114)
Unknown column 'np.person' in 'where clause'