Hi there,
I try to set this sql query in a multiselect field in order to get only the two first words at the begining of the sentence:
SELECT SUBSTRING_INDEX(title
, ' ', 2 ) AS text
FROM #__js_res_record AS r
WHERE r.section_id IN(2,9)
AND r.user_id != [USER_ID]
Everything seems fine on the frontend. The field displays only the two first words in values as expected. For example, instead of "Article Alpha: Computing science courses" i get "Article Alpha:". But when i select one value and save the record, i get a 500 error page.
I forgot something ?
Help please.
Hi there,
I try to set this sql query in a multiselect field in order to get only the two first words at the begining of the sentence:
SELECT SUBSTRING_INDEX(
title
, ' ', 2 ) AS text FROM #__js_res_record AS r WHERE r.section_id IN(2,9) AND r.user_id != [USER_ID]Everything seems fine on the frontend. The field displays only the two first words in values as expected. For example, instead of "Article Alpha: Computing science courses" i get "Article Alpha:". But when i select one value and save the record, i get a 500 error page.
I forgot something ?
Help please.