Inject the second query by manipulating the output of first query

This is the query where you Inject : SELECT id,sec_code FROM users WHERE id='1' order by 3-- '
Error While Selection process : Unknown column '3' in 'order clause'