How to limit number of table A lines in a select with more joins table B, table C, I have more tables that are joined together: