SELECT personal_tb.Teacher_code, personal_tb.Teacher_name, personal_tb.Teacher_lastname, user_tb.Username, user_tb.PasswordR, personal_tb.k, personal_tb.secure_code
FROM personal_tb
INNER JOIN user_tb ON personal_tb.Teacher_code = user_tb.Teacher_code
WHERE personal_tb.temp = 't'
ORDER BY personal_tb.numbers
LIMIT 0 , 150