A: 

In your LOCATE statement, you are searching for an empty string '' instead of a space ' '

Add a space character.

What you are doing will fetch the string from its second character to the first occurrence of a space character. Is this really what you want to do? What if the the first or second character are space characters?

Pekka
Indeed it's specific. But that's exactly what I want to do. The space hint was very good though. Thanks for that. Unfortunately the output still contains the first letter of some text...
Soloco
Ah, by changing the string from its first character the output is ok. Well, I'll stick the rest in my phpscript. Thank you.
Soloco
A: 

You can use SUBSTRING_INDEX for that:

SELECT SUBSTRING_INDEX(title, ' ', 1) FROM table
SELECT SUBSTRING_INDEX('hello world', ' ', 1) # gives you 'hello'

http://dev.mysql.com/doc/refman/5.0/en/string-functions.htm

NullUserException
A: 

You could use:

SUBSTRING(title,2,charindex('',title)-1)

This would cut the string just before the space in the title

Matt